Changeset 85636 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
- Timestamp:
- Aug 6, 2020 1:11:52 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r85620 r85636 3042 3042 actionPool()->action(UIActionIndexMN_M_Group_M_StartOrShow)->setState(pItem->isItemPoweredOff() ? 0 : 1); 3043 3043 actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow)->setState(pItem->isItemPoweredOff() ? 0 : 1); 3044 /// @todo Hmm, fix it? 3045 // QToolButton *pButton = qobject_cast<QToolButton*>(m_pToolBar->widgetForAction(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow))); 3046 // if (pButton) 3047 // pButton->setPopupMode(pItem->isItemPoweredOff() ? QToolButton::MenuButtonPopup : QToolButton::DelayedPopup); 3044 m_pWidget->updateToolBarMenuButtons(pItem->isItemPoweredOff()); 3048 3045 } 3049 3046 else … … 3051 3048 actionPool()->action(UIActionIndexMN_M_Group_M_StartOrShow)->setState(0); 3052 3049 actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow)->setState(0); 3053 /// @todo Hmm, fix it? 3054 // QToolButton *pButton = qobject_cast<QToolButton*>(m_pToolBar->widgetForAction(actionPool()->action(UIActionIndexMN_M_Machine_M_StartOrShow))); 3055 // if (pButton) 3056 // pButton->setPopupMode(pItem->isItemPoweredOff() ? QToolButton::MenuButtonPopup : QToolButton::DelayedPopup); 3050 m_pWidget->updateToolBarMenuButtons(true /* separate menu section? */); 3057 3051 } 3058 3052
Note:
See TracChangeset
for help on using the changeset viewer.