VirtualBox

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


Ignore:
Timestamp:
Apr 13, 2010 9:54:22 AM (15 years ago)
Author:
vboxsync
Message:

FE/Qt: 4816: Initial window size of Screen > 1 too small => should be fixed.

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

Legend:

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

    r27684 r28239  
    172172    virtual void sltMouseCapturedStatusChanged();
    173173
     174    /* Various helper slots: */
     175    virtual void sltNormalizeGeometry() { normalizeGeometry(true); }
     176
    174177private:
    175178
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp

    r28020 r28239  
    527527            setGeometry(m_normalGeometry);
    528528
    529             /* Normalize view to the optimal size */
    530             if (machineView())
    531                 machineView()->normalizeGeometry(true /* adjust position? */);
    532 
    533529            /* Maximize if needed: */
    534530            if (max)
     
    537533        else
    538534        {
    539             /* Normalize to the optimal size */
     535            /* Normalize view early to the optimal size: */
    540536            if (machineView())
    541537                machineView()->normalizeGeometry(true /* adjust position? */);
     
    546542            setGeometry(m_normalGeometry);
    547543        }
     544
     545        /* Normalize view to the optimal size: */
     546        if (machineView())
     547            QTimer::singleShot(0, machineView(), SLOT(sltNormalizeGeometry()));
    548548    }
    549549
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