Changeset 18636 in vbox for trunk/src/VBox
- Timestamp:
- Apr 2, 2009 1:08:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/QILineEdit.cpp
r18631 r18636 25 25 /* Qt includes */ 26 26 #include <QStyleOptionFrame> 27 28 #if defined (Q_WS_WIN32) 27 29 #include <QWindowsVistaStyle> 30 #endif 28 31 29 32 void QILineEdit::setFixedWidthByText (const QString &aText) … … 42 45 QSize sa = style()->sizeFromContents (QStyle::CT_LineEdit, &sof, sc, this); 43 46 47 #if defined (Q_WS_WIN32) 44 48 /* Vista l&f style has a bug where the last parameter of sizeFromContents 45 49 * function ('widget' what corresponds to 'this' in our class) is ignored. … … 48 52 if (qobject_cast <QWindowsVistaStyle*> (style())) 49 53 sa -= QSize (23, 0); 54 #endif 50 55 51 56 setMaximumWidth (sa.width());
Note:
See TracChangeset
for help on using the changeset viewer.