Changeset 17960 in vbox
- Timestamp:
- Mar 16, 2009 5:31:15 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsNetworkDetails.cpp
r17954 r17960 56 56 //mLeHMv6->setValidator (new QRegExpValidator 57 57 // (QRegExp ("\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}"), this)); 58 mLeIPv6->setFixedWidthByText (QString().fill ('X', 39)); 58 59 connect (mCbHOI, SIGNAL (currentIndexChanged (int)), 59 60 this, SLOT (hostOnlyInterfaceChanged())); … … 74 75 mLeMAC->setValidator (new QRegExpValidator 75 76 (QRegExp ("[0-9A-Fa-f][02468ACEace][0-9A-Fa-f]{10}"), this)); 76 QStyleOptionFrame options; 77 options.initFrom (mLeMAC); 78 options.rect = mLeMAC->contentsRect(); 79 options.lineWidth = mLeMAC->style()->pixelMetric (QStyle::PM_DefaultFrameWidth); 80 options.midLineWidth = 0; 81 options.state |= QStyle::State_Sunken; 82 QSize contentSize (mLeMAC->fontMetrics().width ('X') * 12 + 2*2, 83 mLeMAC->fontMetrics().xHeight() + 2*1); 84 QSize totalSize = style()->sizeFromContents (QStyle::CT_LineEdit, 85 &options, contentSize, this); 86 mLeMAC->setMinimumWidth (totalSize.width()); 77 mLeMAC->setFixedWidthByText (QString().fill ('X', 12)); 87 78 connect (mTbMAC, SIGNAL (clicked()), this, SLOT (genMACClicked())); 88 79 #if defined (Q_WS_MAC) -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsNetworkDetails.ui
r17901 r17960 190 190 </item> 191 191 <item row="6" column="2" colspan="3" > 192 <widget class="Q LineEdit" name="mLeIPv4" >192 <widget class="QILineEdit" name="mLeIPv4" > 193 193 <property name="sizePolicy" > 194 194 <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > … … 216 216 </item> 217 217 <item row="7" column="2" colspan="3" > 218 <widget class="Q LineEdit" name="mLeHMv4" >218 <widget class="QILineEdit" name="mLeHMv4" > 219 219 <property name="sizePolicy" > 220 220 <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > … … 242 242 </item> 243 243 <item row="8" column="2" colspan="3" > 244 <widget class="Q LineEdit" name="mLeIPv6" >244 <widget class="QILineEdit" name="mLeIPv6" > 245 245 <property name="sizePolicy" > 246 246 <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > … … 268 268 </item> 269 269 <item row="9" column="2" colspan="3" > 270 <widget class="Q LineEdit" name="mLeHMv6" >270 <widget class="QILineEdit" name="mLeHMv6" > 271 271 <property name="sizePolicy" > 272 272 <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > … … 323 323 </item> 324 324 <item row="11" column="2" colspan="2" > 325 <widget class="Q LineEdit" name="mLeMAC" >325 <widget class="QILineEdit" name="mLeMAC" > 326 326 <property name="sizePolicy" > 327 327 <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > … … 385 385 <extends>QLabel</extends> 386 386 <header>QILabelSeparator.h</header> 387 </customwidget> 388 <customwidget> 389 <class>QILineEdit</class> 390 <extends>QLineEdit</extends> 391 <header>QILineEdit.h</header> 387 392 </customwidget> 388 393 <customwidget>
Note:
See TracChangeset
for help on using the changeset viewer.