VirtualBox

Changeset 31866 in vbox for trunk


Ignore:
Timestamp:
Aug 23, 2010 2:52:35 PM (14 years ago)
Author:
vboxsync
Message:

FE/Qt: 5219: Minimize from fullscreen - Initial implementation, icon to be committed later.

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  
    200200            menus << actions.at(i)->menu();
    201201        *m_pMiniToolBar << menus;
     202        connect(m_pMiniToolBar, SIGNAL(minimizeAction()), this, SLOT(showMinimized()));
    202203        connect(m_pMiniToolBar, SIGNAL(exitAction()),
    203204                uisession()->actionsPool()->action(UIActionIndex_Toggle_Fullscreen), SLOT(trigger()));
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp

    r31284 r31866  
    251251            menus << actions.at(i)->menu();
    252252        *m_pMiniToolBar << menus;
     253        connect(m_pMiniToolBar, SIGNAL(minimizeAction()), this, SLOT(showMinimized()));
    253254        connect(m_pMiniToolBar, SIGNAL(exitAction()),
    254255                uisession()->actionsPool()->action(UIActionIndex_Toggle_Seamless), SLOT(trigger()));
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxMiniToolBar.cpp

    r30192 r31866  
    4141    , m_pAutoHideAction(0)
    4242    , m_pDisplayLabel(0)
     43    , m_pMinimizeAction(0)
    4344    , m_pRestoreAction(0)
    4445    , m_pCloseAction(0)
     
    9596    /* Right label margin: */
    9697    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);
    97105
    98106    /* Exit action: */
     
    456464    if (m_pAutoHideAction && widgetForAction(m_pAutoHideAction))
    457465        widgetForAction(m_pAutoHideAction)->setMouseTracking(fEnabled);
     466    if (m_pMinimizeAction && widgetForAction(m_pMinimizeAction))
     467        widgetForAction(m_pMinimizeAction)->setMouseTracking(fEnabled);
    458468    if (m_pRestoreAction && widgetForAction(m_pRestoreAction))
    459469        widgetForAction(m_pRestoreAction)->setMouseTracking(fEnabled);
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxMiniToolBar.h

    r29083 r31866  
    5959signals:
    6060
     61    void minimizeAction();
    6162    void exitAction();
    6263    void closeAction();
     
    8485    QAction *m_pAutoHideAction;
    8586    QLabel *m_pDisplayLabel;
     87    QAction *m_pMinimizeAction;
    8688    QAction *m_pRestoreAction;
    8789    QAction *m_pCloseAction;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette