Changeset 17954 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 16, 2009 4:43:16 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsNetworkDetails.cpp
r17903 r17954 74 74 mLeMAC->setValidator (new QRegExpValidator 75 75 (QRegExp ("[0-9A-Fa-f][02468ACEace][0-9A-Fa-f]{10}"), this)); 76 QStyleOption options;76 QStyleOptionFrame options; 77 77 options.initFrom (mLeMAC); 78 QSize contentSize (mLeMAC->fontMetrics().width ('X') * 12, 79 mLeMAC->fontMetrics().xHeight()); 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); 80 84 QSize totalSize = style()->sizeFromContents (QStyle::CT_LineEdit, 81 85 &options, contentSize, this);
Note:
See TracChangeset
for help on using the changeset viewer.