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

Method showContextMenu

src/plugins/codeeditor/statusbar/encodecombobox.cpp:184–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184void EncodeComboBox::showContextMenu()
185{
186 QPoint center = this->mapToGlobal(this->rect().center());
187 int menuHeight = menu->sizeHint().height();
188 int menuWidth = menu->sizeHint().width();
189 center.setY(center.y() - menuHeight - this->rect().height() / 2);
190 center.setX(center.x() - menuWidth / 2);
191 menu->move(center);
192 menu->exec();
193
194 QEvent event(QEvent::HoverLeave);
195 QApplication::sendEvent(toolBtn, &event);
196}
197
198void EncodeComboBox::setCheckedExclusive(QAction *action, const QString &name)
199{

Callers

nothing calls this directly

Calls 4

sendEventFunction · 0.85
widthMethod · 0.80
sizeHintMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected