MCPcopy Create free account
hub / github.com/SeptemberHX/dde-top-panel / menuLabelClicked

Method menuLabelClicked

widgets/ActiveWindowControlWidget.cpp:309–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307}
308
309void ActiveWindowControlWidget::menuLabelClicked() {
310 auto *label = dynamic_cast<QClickableLabel*>(sender());
311 this->trigger(label, this->buttonLabelList.indexOf(label));
312}
313
314// for modern gtk applications, some menu has no sub menus, and only action is presented.
315// thus, we obtain the action instead of the menu so we can perform the action when no submenu

Callers

nothing calls this directly

Calls 1

triggerMethod · 0.95

Tested by

no test coverage detected