VirtualBox

Changeset 31284 in vbox for trunk


Ignore:
Timestamp:
Aug 2, 2010 11:40:32 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64311
Message:

FE/Qt: New running VM core: Explicit cleanup of mini-toolbar.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
4 edited

Legend:

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

    r30546 r31284  
    9898    /* Save window settings: */
    9999    saveWindowSettings();
     100
     101    /* Cleanup mini tool-bar: */
     102    cleanupMiniToolBar();
    100103
    101104    /* Prepare handlers: */
     
    259262}
    260263
     264void UIMachineWindowFullscreen::cleanupMiniToolBar()
     265{
     266    if (m_pMiniToolBar)
     267    {
     268        delete m_pMiniToolBar;
     269        m_pMiniToolBar = 0;
     270    }
     271}
     272
    261273void UIMachineWindowFullscreen::cleanupMenu()
    262274{
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.h

    r30213 r31284  
    7575    void saveWindowSettings();
    7676    void cleanupMachineView();
    77     //void cleanupMiniToolBar() {}
     77    void cleanupMiniToolBar();
    7878    void cleanupMenu();
    7979
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp

    r30546 r31284  
    7777    prepareHandlers();
    7878
     79#ifndef Q_WS_MAC
    7980    /* Prepare mini tool-bar: */
    80 #ifndef Q_WS_MAC
    8181    prepareMiniToolBar();
    8282#endif /* Q_WS_MAC */
     
    101101    /* Save window settings: */
    102102    saveWindowSettings();
     103
     104#ifndef Q_WS_MAC
     105    /* Cleanup mini tool-bar: */
     106    cleanupMiniToolBar();
     107#endif /* Q_WS_MAC */
    103108
    104109    /* Prepare handlers: */
     
    319324}
    320325
     326#ifndef Q_WS_MAC
     327void UIMachineWindowSeamless::cleanupMiniToolBar()
     328{
     329    if (m_pMiniToolBar)
     330    {
     331        delete m_pMiniToolBar;
     332        m_pMiniToolBar = 0;
     333    }
     334}
     335#endif /* Q_WS_MAC */
     336
    321337void UIMachineWindowSeamless::cleanupMenu()
    322338{
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.h

    r30213 r31284  
    8989    void cleanupMachineView();
    9090#ifndef Q_WS_MAC
    91     //void cleanupMiniToolBar() {}
     91    void cleanupMiniToolBar();
    9292#endif /* Q_WS_MAC */
    9393    void cleanupMenu();
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