VirtualBox

Ignore:
Timestamp:
Jun 30, 2016 4:39:55 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108409
Message:

Reverting r108269 and r108260 as it was temporary and unstable workaround.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp

    r61856 r61963  
    2323# include <QMenu>
    2424# include <QTimer>
    25 # if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11)
     25# ifdef VBOX_WS_WIN
    2626#  if QT_VERSION >= 0x050000
    2727#   include <QWindow>
    2828#  endif /* QT_VERSION >= 0x050000 */
    29 # endif /* VBOX_WS_WIN || VBOX_WS_X11 */
     29# endif /* VBOX_WS_WIN */
    3030
    3131/* GUI includes: */
     
    196196}
    197197#endif /* VBOX_WS_MAC */
    198 
    199 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11)
    200 void UIMachineWindowFullscreen::sltShowMinimized()
    201 {
    202 # if QT_VERSION < 0x050000
    203     /* Minimize window: */
    204     showMinimized();
    205 # else /* QT_VERSION >= 0x050000 */
    206 #  if defined(VBOX_WS_WIN)
    207     /* Minimize window: */
    208     showMinimized();
    209 #  else /* VBOX_WS_X11 */
    210     /* Minimize window and reset it's state to NONE: */
    211     setWindowState(Qt::WindowNoState);
    212     windowHandle()->showMinimized();
    213 
    214     /* If there is mini-toolbar: */
    215     if (m_pMiniToolBar)
    216     {
    217         /* Hide mini-toolbar and reset it's state to NONE: */
    218         m_pMiniToolBar->setWindowState(Qt::WindowNoState);
    219         m_pMiniToolBar->hide();
    220     }
    221 #  endif /* VBOX_WS_X11 */
    222 # endif /* QT_VERSION >= 0x050000 */
    223 }
    224 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */
    225198
    226199void UIMachineWindowFullscreen::prepareVisualState()
     
    286259        m_pMiniToolBar->addMenus(actionPool()->menus());
    287260        connect(m_pMiniToolBar, SIGNAL(sigMinimizeAction()),
    288                 this, SLOT(sltShowMinimized()), Qt::QueuedConnection);
     261                this, SLOT(showMinimized()), Qt::QueuedConnection);
    289262        connect(m_pMiniToolBar, SIGNAL(sigExitAction()),
    290263                actionPool()->action(UIActionIndexRT_M_View_T_Fullscreen), SLOT(trigger()));
     
    629602#endif /* VBOX_WS_WIN || VBOX_WS_X11 */
    630603
    631 #ifdef VBOX_WS_X11
    632 # if QT_VERSION >= 0x050000
    633 void UIMachineWindowFullscreen::changeEvent(QEvent *pEvent)
    634 {
    635     /* Depending on event type: */
    636     switch (pEvent->type())
    637     {
    638         case QEvent::WindowStateChange:
    639         {
    640             /* Restore necessary mode view on changing state from Minimized to None: */
    641             QWindowStateChangeEvent *pChangeEvent = static_cast<QWindowStateChangeEvent*>(pEvent);
    642             if (pChangeEvent->oldState() == Qt::WindowMinimized && windowState() == Qt::WindowNoState)
    643                 showInNecessaryMode();
    644             break;
    645         }
    646     }
    647     /* Call to base-class: */
    648     UIMachineWindow::changeEvent(pEvent);
    649 }
    650 # endif /* QT_VERSION >= 0x050000 */
    651 #endif /* VBOX_WS_X11 */
    652 
    653604#ifdef VBOX_WS_WIN
    654605# if QT_VERSION >= 0x050000
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.h

    r61850 r61963  
    7676#endif /* RT_OS_DARWIN */
    7777
    78 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11)
    79     /** Performs window minimization the tricky way. */
    80     void sltShowMinimized();
    81 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */
    82 
    8378private:
    8479
     
    106101    void updateAppearanceOf(int iElement);
    107102#endif /* VBOX_WS_WIN || VBOX_WS_X11 */
    108 
    109 #ifdef VBOX_WS_X11
    110 # if QT_VERSION >= 0x050000
    111     /** Handles @a pEvent about state change. */
    112     void changeEvent(QEvent *pEvent);
    113 # endif /* QT_VERSION >= 0x050000 */
    114 #endif /* VBOX_WS_X11 */
    115103
    116104#ifdef VBOX_WS_WIN
Note: See TracChangeset for help on using the changeset viewer.

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