VirtualBox

Changeset 39081 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 21, 2011 9:20:24 PM (13 years ago)
Author:
vboxsync
Message:

FE/Qt: remove some now unused code which was formerly needed for determining the maximum desired guest resolution.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h

    r39023 r39081  
    229229 * Later it will become more abstract but now its just used to help
    230230 * fullscreen & seamless modes to restore normal guest size hint. */
     231/** @todo This class is now unused - can it be removed altogether? */
    231232class UIMachineViewBlocker : public QEventLoop
    232233{
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp

    r39023 r39081  
    9393}
    9494
    95 void UIMachineViewFullscreen::sltDesktopResized()
    96 {
    97 
    98 }
    99 
    10095bool UIMachineViewFullscreen::event(QEvent *pEvent)
    10196{
     
    169164}
    170165
    171 void UIMachineViewFullscreen::prepareConnections()
    172 {
    173     connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(sltDesktopResized()));
    174 }
    175 
    176166void UIMachineViewFullscreen::prepareConsoleConnections()
    177167{
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.h

    r39023 r39081  
    4444    void sltAdditionsStateChanged();
    4545
    46     /* Watch dog for desktop resizes: */
    47     void sltDesktopResized();
    48 
    4946private:
    5047
     
    5653    void prepareCommon();
    5754    void prepareFilters();
    58     void prepareConnections();
    5955    void prepareConsoleConnections();
    6056
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp

    r39077 r39081  
    6464    prepareFilters();
    6565
    66     /* Prepare connections: */
    67     prepareConnections();
    68 
    6966    /* Prepare console connections: */
    7067    prepareConsoleConnections();
     
    9491     * switch. */
    9592    maybeResendResizeHint();
    96 }
    97 
    98 void UIMachineViewNormal::sltDesktopResized()
    99 {
    100 
    10193}
    10294
     
    195187}
    196188
    197 void UIMachineViewNormal::prepareConnections()
    198 {
    199     connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(sltDesktopResized()));
    200 }
    201 
    202189void UIMachineViewNormal::prepareConsoleConnections()
    203190{
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.h

    r39077 r39081  
    4444    void sltAdditionsStateChanged();
    4545
    46     /* Watch dog for desktop resizes: */
    47     void sltDesktopResized();
    48 
    4946#ifdef Q_WS_X11
    5047    /* Slot to perform synchronized geometry normalization.
     
    6259    void prepareCommon();
    6360    void prepareFilters();
    64     void prepareConnections();
    6561    void prepareConsoleConnections();
    6662    //void loadMachineViewSettings();
     
    7470    void saveMachineViewSettings();
    7571    //void cleanupConsoleConnections() {}
    76     //void prepareConnections() {}
    7772    //void cleanupFilters() {}
    7873    //void cleanupCommon() {}
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineViewScale.cpp

    r39023 r39081  
    6464    prepareFilters();
    6565
    66     /* Prepare connections: */
    67     prepareConnections();
    68 
    6966    /* Prepare console connections: */
    7067    prepareConsoleConnections();
     
    150147    /* Update machine-view sliders: */
    151148    updateSliders();
    152 }
    153 
    154 void UIMachineViewScale::sltDesktopResized()
    155 {
    156 
    157149}
    158150
     
    339331}
    340332
    341 void UIMachineViewScale::prepareConnections()
    342 {
    343     connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(sltDesktopResized()));
    344 }
    345 
    346333void UIMachineViewScale::saveMachineViewSettings()
    347334{
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineViewScale.h

    r39023 r39081  
    4949    void sltPerformGuestScale();
    5050
    51     /* Watch dog for desktop resizes: */
    52     void sltDesktopResized();
    53 
    5451private:
    5552
     
    6057    /* Prepare helpers: */
    6158    void prepareFrameBuffer();
    62     void prepareConnections();
    6359    //void loadMachineViewSettings();
    6460
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp

    r39023 r39081  
    6666    prepareFilters();
    6767
    68     /* Prepare connections: */
    69     prepareConnections();
    70 
    7168    /* Prepare console connections: */
    7269    prepareConsoleConnections();
     
    9289{
    9390    // TODO: Exit seamless if additions doesn't support it!
    94 }
    95 
    96 void UIMachineViewSeamless::sltDesktopResized()
    97 {
    98     /** @todo Try to resize framebuffer according new desktop size,
    99      *        exit seamless if resize is failed! */
    100     /** @todo Check whether this isn't already fixed elsewhere.
    101      *        I don't think that it is the GUI's job to check that
    102      *        the resize succeeded though. */
    10391}
    10492
     
    188176}
    189177
    190 void UIMachineViewSeamless::prepareConnections()
    191 {
    192     connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(sltDesktopResized()));
    193 }
    194 
    195178void UIMachineViewSeamless::prepareConsoleConnections()
    196179{
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.h

    r39023 r39081  
    4949    void sltAdditionsStateChanged();
    5050
    51     /* Watch dog for desktop resizes: */
    52     void sltDesktopResized();
    53 
    5451private:
    5552
     
    6158    void prepareCommon();
    6259    void prepareFilters();
    63     void prepareConnections();
    6460    void prepareConsoleConnections();
    6561    void prepareSeamless();
     
    6864    void cleanupSeamless();
    6965    //void cleanupConsoleConnections() {}
    70     //void prepareConnections() {}
    7166    //void cleanupFilters() {}
    7267    //void cleanupCommon() {}
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