Shows context menu with Display Unit options by the mouse coordinates */
| 1536 | |
| 1537 | /** Shows context menu with Display Unit options by the mouse coordinates */ |
| 1538 | void UnitDisplayStatusBarControl::onDisplayUnitsClicked(const QPoint& point) |
| 1539 | { |
| 1540 | QPoint globalPos = mapToGlobal(point); |
| 1541 | menu->exec(globalPos); |
| 1542 | } |
| 1543 | |
| 1544 | /** Tells underlying optionsModel to update its current display unit. */ |
| 1545 | void UnitDisplayStatusBarControl::onMenuSelection(QAction* action) |