- Timestamp:
- Dec 18, 2024 12:59:12 PM (6 weeks ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIGlobalToolsManagerWidget.cpp
r107348 r107351 222 222 223 223 /* Create tool-menu: */ 224 m_pMenu = new UITools(this, UIToolClass_Global, actionPool() );224 m_pMenu = new UITools(this, UIToolClass_Global, actionPool(), Qt::Widget); 225 225 if (toolMenu()) 226 226 { -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UITools.cpp
r107299 r107351 38 38 39 39 40 UITools::UITools(QWidget *pParent, UIToolClass enmClass, UIActionPool *pActionPool) 41 : QWidget(pParent, Qt::Popup) 40 UITools::UITools(QWidget *pParent, 41 UIToolClass enmClass, 42 UIActionPool *pActionPool, 43 Qt::WindowFlags theFlags /* = Qt::Popup */) 44 : QWidget(pParent, theFlags) 42 45 , m_enmClass(enmClass) 43 46 , m_pActionPool(pActionPool) … … 87 90 { 88 91 return m_pToolsModel->currentItem(); 92 } 93 94 void UITools::sltClose() 95 { 96 /* Close the widget in popup mode only: */ 97 if (windowFlags() == Qt::Popup) 98 close(); 89 99 } 90 100 … … 146 156 /* Model connections: */ 147 157 connect(m_pToolsModel, &UIToolsModel::sigClose, 148 this, &UITools:: close);158 this, &UITools::sltClose); 149 159 connect(m_pToolsModel, &UIToolsModel::sigSelectionChanged, 150 160 this, &UITools::sigSelectionChanged); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UITools.h
r107299 r107351 68 68 /** Constructs Tools-pane passing @a pParent to the base-class. 69 69 * @param enmClass Brings the tools class, it will be fixed one. 70 * @param pActionPool Brings the action-pool reference. */ 71 UITools(QWidget *pParent, UIToolClass enmClass, UIActionPool *pActionPool); 70 * @param pActionPool Brings the action-pool reference. 71 * @param theFlags Brings the widget flags. */ 72 UITools(QWidget *pParent, 73 UIToolClass enmClass, 74 UIActionPool *pActionPool, 75 Qt::WindowFlags theFlags = Qt::Popup); 72 76 73 77 /** @name General stuff. … … 101 105 /** Returns current item. */ 102 106 UIToolsItem *currentItem() const; 107 /** @} */ 108 109 private slots: 110 111 /** @name General stuff. 112 * @{ */ 113 /** Handles the close request. */ 114 void sltClose(); 103 115 /** @} */ 104 116
Note:
See TracChangeset
for help on using the changeset viewer.