VirtualBox

Changeset 18632 in vbox


Ignore:
Timestamp:
Apr 2, 2009 12:20:30 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
45549
Message:

FE/Qt4: VM Settings / General page: RAM and VideoRAM fields are now feat 5 digit values width. Actually the VideoRAM is just layouted according RAM field which feats the new possible RAM size (16 GB).

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsGeneral.cpp

    r18264 r18632  
    110110    mSlRam->setMaximum (MaxRAM);
    111111    /* Limit min/max. size of QLineEdit */
    112     mLeRam->setMaximumSize (mLeRam->fontMetrics().width ("99999"),
    113                             mLeRam->minimumSizeHint().height());
    114     mLeRam->setMinimumSize (mLeRam->maximumSize());
     112    mLeRam->setFixedWidthByText (QString().fill ('9', 5));
    115113    /* Ensure mLeRam value and validation is updated */
    116114    valueChangedRAM (mSlRam->value());
     
    123121    mSlVideo->setMaximum (MaxVRAM);
    124122    /* Limit min/max. size of QLineEdit */
    125     mLeVideo->setMaximumSize (mLeVideo->fontMetrics().width ("99999"),
    126                               mLeVideo->minimumSizeHint().height());
    127     mLeVideo->setMinimumSize (mLeVideo->maximumSize());
     123    mLeVideo->setFixedWidthByText (QString().fill ('9', 5));
    128124    /* Ensure mLeVideo value and validation is updated */
    129125    valueChangedVRAM (mSlVideo->value());
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsGeneral.ui

    r16133 r18632  
    220220              </property>
    221221              <item>
    222                <widget class="QLineEdit" name="mLeRam" >
     222               <widget class="QILineEdit" name="mLeRam" >
    223223                <property name="sizePolicy" >
    224224                 <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
     
    395395              </property>
    396396              <item>
    397                <widget class="QLineEdit" name="mLeVideo" >
     397               <widget class="QILineEdit" name="mLeVideo" >
    398398                <property name="sizePolicy" >
    399399                 <sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
     
    984984   <header>QILabelSeparator.h</header>
    985985  </customwidget>
     986  <customwidget>
     987   <class>QILineEdit</class>
     988   <extends>QLineEdit</extends>
     989   <header>QILineEdit.h</header>
     990  </customwidget>
    986991 </customwidgets>
    987992 <resources/>
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