MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / showPopup

Method showPopup

src/plugins/binarytools/widgets/iconcombobox.cpp:211–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void IconComboBox::showPopup()
212{
213 QStyle *const style = this->style();
214 QStyleOptionComboBox opt;
215 initStyleOption(&opt);
216 QRect rect(style->subControlRect(QStyle::CC_ComboBox, &opt,
217 QStyle::SC_ComboBoxListBoxPopup, this));
218 QPoint below = mapToGlobal(rect.bottomLeft());
219 below.setY(below.y() + 4);
220
221 iconFrame->setFixedWidth(width());
222 iconFrame->show();
223 iconFrame->move(below);
224}
225
226void IconComboBox::setIcon(const QString &icon)
227{

Callers

nothing calls this directly

Calls 2

styleMethod · 0.80
showMethod · 0.45

Tested by

no test coverage detected