VirtualBox

Ignore:
Timestamp:
Oct 25, 2018 3:28:42 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9254: VM settings / Display page: A bit of width sync for spin-boxes.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r74878 r75080  
    960960        {
    961961            /* Configure editor: */
    962             vboxGlobal().setMinimumWidthAccordingSymbolCount(m_pEditorVideoMemorySize, 4);
     962            vboxGlobal().setMinimumWidthAccordingSymbolCount(m_pEditorVideoMemorySize, 7);
    963963            m_pEditorVideoMemorySize->setMinimum(m_iMinVRAM);
    964964            m_pEditorVideoMemorySize->setMaximum(m_iMaxVRAMVisible);
     
    987987            /* Configure editor: */
    988988            const uint cMaxGuestScreens = sys.GetMaxGuestMonitors();
    989             vboxGlobal().setMinimumWidthAccordingSymbolCount(m_pEditorVideoScreenCount, 3);
    990989            m_pEditorVideoScreenCount->setMinimum(1);
    991990            m_pEditorVideoScreenCount->setMaximum(cMaxGuestScreens);
     991        }
     992
     993        /* Scale-factor editor created in the .ui file. */
     994        AssertPtrReturnVoid(m_pScaleFactorEditor);
     995        {
     996            /* Configure editor: */
     997            m_pScaleFactorEditor->setSpinBoxWidthHint(m_pEditorVideoMemorySize->minimumWidth());
    992998        }
    993999    }
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIScaleFactorEditor.cpp

    r75078 r75080  
    152152}
    153153
     154void UIScaleFactorEditor::setSpinBoxWidthHint(int iHint)
     155{
     156    m_pScaleSpinBox->setMinimumWidth(iHint);
     157}
     158
    154159void UIScaleFactorEditor::retranslateUi()
    155160{
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIScaleFactorEditor.h

    r74837 r75080  
    5353    void           setDefaultScaleFactor(double dDefaultScaleFactor);
    5454
     55    /** Defines minimum width @a iHint for internal spin-box. */
     56    void           setSpinBoxWidthHint(int iHint);
     57
    5558protected:
    5659
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