- Timestamp:
- Aug 23, 2010 2:52:35 PM (14 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r31284 r31866 200 200 menus << actions.at(i)->menu(); 201 201 *m_pMiniToolBar << menus; 202 connect(m_pMiniToolBar, SIGNAL(minimizeAction()), this, SLOT(showMinimized())); 202 203 connect(m_pMiniToolBar, SIGNAL(exitAction()), 203 204 uisession()->actionsPool()->action(UIActionIndex_Toggle_Fullscreen), SLOT(trigger())); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r31284 r31866 251 251 menus << actions.at(i)->menu(); 252 252 *m_pMiniToolBar << menus; 253 connect(m_pMiniToolBar, SIGNAL(minimizeAction()), this, SLOT(showMinimized())); 253 254 connect(m_pMiniToolBar, SIGNAL(exitAction()), 254 255 uisession()->actionsPool()->action(UIActionIndex_Toggle_Seamless), SLOT(trigger())); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxMiniToolBar.cpp
r30192 r31866 41 41 , m_pAutoHideAction(0) 42 42 , m_pDisplayLabel(0) 43 , m_pMinimizeAction(0) 43 44 , m_pRestoreAction(0) 44 45 , m_pCloseAction(0) … … 95 96 /* Right label margin: */ 96 97 m_LabelMargins << widgetForAction(addWidget(new QWidget(this))); 98 99 /* Minimize action: */ 100 m_pMinimizeAction = new QAction(this); 101 m_pMinimizeAction->setIcon(UIIconPool::iconSet(":/discard_16px.png")); 102 m_pMinimizeAction->setToolTip(tr("Minimize Window")); 103 connect(m_pMinimizeAction, SIGNAL(triggered()), this, SIGNAL(minimizeAction())); 104 addAction(m_pMinimizeAction); 97 105 98 106 /* Exit action: */ … … 456 464 if (m_pAutoHideAction && widgetForAction(m_pAutoHideAction)) 457 465 widgetForAction(m_pAutoHideAction)->setMouseTracking(fEnabled); 466 if (m_pMinimizeAction && widgetForAction(m_pMinimizeAction)) 467 widgetForAction(m_pMinimizeAction)->setMouseTracking(fEnabled); 458 468 if (m_pRestoreAction && widgetForAction(m_pRestoreAction)) 459 469 widgetForAction(m_pRestoreAction)->setMouseTracking(fEnabled); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxMiniToolBar.h
r29083 r31866 59 59 signals: 60 60 61 void minimizeAction(); 61 62 void exitAction(); 62 63 void closeAction(); … … 84 85 QAction *m_pAutoHideAction; 85 86 QLabel *m_pDisplayLabel; 87 QAction *m_pMinimizeAction; 86 88 QAction *m_pRestoreAction; 87 89 QAction *m_pCloseAction;
Note:
See TracChangeset
for help on using the changeset viewer.