Changeset 18632 in vbox
- Timestamp:
- Apr 2, 2009 12:20:30 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 45549
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsGeneral.cpp
r18264 r18632 110 110 mSlRam->setMaximum (MaxRAM); 111 111 /* 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)); 115 113 /* Ensure mLeRam value and validation is updated */ 116 114 valueChangedRAM (mSlRam->value()); … … 123 121 mSlVideo->setMaximum (MaxVRAM); 124 122 /* 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)); 128 124 /* Ensure mLeVideo value and validation is updated */ 129 125 valueChangedVRAM (mSlVideo->value()); -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsGeneral.ui
r16133 r18632 220 220 </property> 221 221 <item> 222 <widget class="Q LineEdit" name="mLeRam" >222 <widget class="QILineEdit" name="mLeRam" > 223 223 <property name="sizePolicy" > 224 224 <sizepolicy vsizetype="Fixed" hsizetype="Maximum" > … … 395 395 </property> 396 396 <item> 397 <widget class="Q LineEdit" name="mLeVideo" >397 <widget class="QILineEdit" name="mLeVideo" > 398 398 <property name="sizePolicy" > 399 399 <sizepolicy vsizetype="Fixed" hsizetype="Maximum" > … … 984 984 <header>QILabelSeparator.h</header> 985 985 </customwidget> 986 <customwidget> 987 <class>QILineEdit</class> 988 <extends>QLineEdit</extends> 989 <header>QILineEdit.h</header> 990 </customwidget> 986 991 </customwidgets> 987 992 <resources/>
Note:
See TracChangeset
for help on using the changeset viewer.