VirtualBox

Changeset 19073 in vbox


Ignore:
Timestamp:
Apr 21, 2009 12:56:11 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46210
Message:

FE/Qt4: 3832: Memory textfield looks ugly on Windows 2008 - fixed.

File:
1 edited

Legend:

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

    r18905 r19073  
    2828#if defined (Q_WS_WIN32)
    2929#include <QWindowsVistaStyle>
     30#include <QLibrary>
    3031#endif
    3132
     
    6162     * non-existing combo-box button of 23 pix in width. So fixing it here: */
    6263    if (qobject_cast <QWindowsVistaStyle*> (style()))
    63         sa -= QSize (23, 0);
     64    {
     65        /* Check if l&f style theme is really active else painting performed by
     66         * Windows Classic theme and there is no such shifting error. */
     67        typedef bool (*IsAppThemedFunction)();
     68        IsAppThemedFunction isAppThemed =
     69            (IsAppThemedFunction) QLibrary::resolve ("uxtheme", "IsAppThemed");
     70        if (isAppThemed && isAppThemed()) sa -= QSize (23, 0);
     71    }
    6472#endif
    6573
Note: See TracChangeset for help on using the changeset viewer.

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