| 307 | } |
| 308 | |
| 309 | void 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 |