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

Method showPopup

src/plugins/binarytools/widgets/combinationcomboxbox.cpp:108–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void CombinationComboxBox::showPopup()
109{
110 QStyle *const style = this->style();
111 QStyleOptionComboBox opt;
112 initStyleOption(&opt);
113 QRect rect(style->subControlRect(QStyle::CC_ComboBox, &opt,
114 QStyle::SC_ComboBoxListBoxPopup, this));
115 QPoint below = mapToGlobal(rect.bottomLeft());
116 below.setY(below.y() + 4);
117
118 completerView->setFixedWidth(width());
119 completerView->show();
120 completerView->move(below);
121}
122
123void CombinationComboxBox::paintEvent(QPaintEvent *event)
124{

Callers

nothing calls this directly

Calls 2

styleMethod · 0.80
showMethod · 0.45

Tested by

no test coverage detected