- Timestamp:
- Jul 12, 2016 6:31:33 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r61333 r62205 1633 1633 /* Prepare graphics VM list: */ 1634 1634 m_pPaneChooser = new UIGChooser(this); 1635 m_pPaneChooser->setStatusBar(statusBar());1636 1635 1637 1636 /* Prepare graphics details: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooser.cpp
r52730 r62205 40 40 , m_pChooserModel(0) 41 41 , m_pChooserView(0) 42 , m_pStatusBar(0)43 42 { 44 43 /* Prepare palette: */ … … 90 89 { 91 90 return m_pChooserModel->isAllItemsOfOneGroupSelected(); 92 }93 94 void UIGChooser::setStatusBar(QStatusBar *pStatusBar)95 {96 /* Old status-bar set? */97 if (m_pStatusBar)98 m_pChooserModel->disconnect(m_pStatusBar);99 100 /* Connect new status-bar: */101 m_pStatusBar = pStatusBar;102 connect(m_pChooserModel, SIGNAL(sigClearStatusMessage()),103 m_pStatusBar, SLOT(clearMessage()));104 connect(m_pChooserModel, SIGNAL(sigShowStatusMessage(const QString&)),105 m_pStatusBar, SLOT(showMessage(const QString&)));106 91 } 107 92 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooser.h
r55401 r62205 71 71 bool isAllItemsOfOneGroupSelected() const; 72 72 73 /* API: Status-bar stuff: */74 void setStatusBar(QStatusBar *pStatusBar);75 76 73 /* API: Group-saving stuff: */ 77 74 bool isGroupSavingInProgress() const; … … 97 94 UIGChooserModel *m_pChooserModel; 98 95 UIGChooserView *m_pChooserView; 99 QStatusBar *m_pStatusBar;100 96 }; 101 97 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp
r60524 r62205 1144 1144 } 1145 1145 1146 void UIGChooserModel::sltActionHovered(QAction *pAction)1147 {1148 emit sigShowStatusMessage(pAction->statusTip());1149 }1150 1151 1146 void UIGChooserModel::sltEraseLookupTimer() 1152 1147 { … … 1246 1241 m_pContextMenuMachine->addSeparator(); 1247 1242 m_pContextMenuMachine->addAction(actionPool()->action(UIActionIndexST_M_Machine_S_SortParent)); 1248 1249 connect(m_pContextMenuGroup, SIGNAL(hovered(QAction*)), this, SLOT(sltActionHovered(QAction*)));1250 connect(m_pContextMenuMachine, SIGNAL(hovered(QAction*)), this, SLOT(sltActionHovered(QAction*)));1251 1243 1252 1244 connect(actionPool()->action(UIActionIndexST_M_Group_S_New), SIGNAL(triggered()), … … 1669 1661 } 1670 1662 } 1671 /* Clear status-bar: */1672 emit sigClearStatusMessage();1673 1663 } 1674 1664 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.h
r58446 r62205 62 62 signals: 63 63 64 /* Notifiers: Status-bar stuff: */65 void sigShowStatusMessage(const QString &strStatusMessage);66 void sigClearStatusMessage();67 68 64 /* Notifier: Current-item stuff: */ 69 65 void sigSelectionChanged(); … … 196 192 void sltCurrentDragObjectDestroyed(); 197 193 198 /* Handler: Context-menu stuff: */199 void sltActionHovered(QAction *pAction);200 201 194 /* Handler: Item lookup stuff: */ 202 195 void sltEraseLookupTimer();
Note:
See TracChangeset
for help on using the changeset viewer.