Changeset 18631 in vbox
- Timestamp:
- Apr 2, 2009 12:16:45 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 45547
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/QILineEdit.cpp
r8621 r18631 25 25 /* Qt includes */ 26 26 #include <QStyleOptionFrame> 27 #include <QWindowsVistaStyle> 27 28 28 29 void QILineEdit::setFixedWidthByText (const QString &aText) … … 41 42 QSize sa = style()->sizeFromContents (QStyle::CT_LineEdit, &sof, sc, this); 42 43 44 /* Vista l&f style has a bug where the last parameter of sizeFromContents 45 * function ('widget' what corresponds to 'this' in our class) is ignored. 46 * Due to it QLineEdit processed as QComboBox and size calculation includes 47 * non-existing combo-box button of 23 pix in width. So fixing it here: */ 48 if (qobject_cast <QWindowsVistaStyle*> (style())) 49 sa -= QSize (23, 0); 50 43 51 setMaximumWidth (sa.width()); 44 52 setMinimumWidth (sa.width());
Note:
See TracChangeset
for help on using the changeset viewer.