VirtualBox

Changeset 18636 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 2, 2009 1:08:17 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: Burn fix for 45547 commit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/QILineEdit.cpp

    r18631 r18636  
    2525/* Qt includes */
    2626#include <QStyleOptionFrame>
     27
     28#if defined (Q_WS_WIN32)
    2729#include <QWindowsVistaStyle>
     30#endif
    2831
    2932void QILineEdit::setFixedWidthByText (const QString &aText)
     
    4245    QSize sa = style()->sizeFromContents (QStyle::CT_LineEdit, &sof, sc, this);
    4346
     47#if defined (Q_WS_WIN32)
    4448    /* Vista l&f style has a bug where the last parameter of sizeFromContents
    4549     * function ('widget' what corresponds to 'this' in our class) is ignored.
     
    4852    if (qobject_cast <QWindowsVistaStyle*> (style()))
    4953        sa -= QSize (23, 0);
     54#endif
    5055
    5156    setMaximumWidth (sa.width());
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette