VirtualBox

Changeset 46593 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jun 17, 2013 2:32:51 PM (12 years ago)
Author:
vboxsync
Message:

updates

File:
1 edited

Legend:

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

    r44529 r46593  
    11/* $Id$ */
    22/** @file
    3  *
    4  * VBox frontends: Qt GUI ("VirtualBox"):
    5  * QILineEdit class implementation
     3 * VirtualBox Qt GUI - QILineEdit class implementation.
    64 */
    75
    86/*
    9  * Copyright (C) 2008-2010 Oracle Corporation
     7 * Copyright (C) 2008-2013 Oracle Corporation
    108 *
    119 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2422
    2523#if defined (Q_WS_WIN32)
    26 #include <QWindowsVistaStyle>
    27 #include <QLibrary>
     24# include <QWindowsVistaStyle>
     25# include <QLibrary>
     26#endif
     27#if defined (Q_WS_WIN32)
     28# include <Windows.h>
     29# include "iprt/ldr.h"
    2830#endif
    2931
     
    6264        /* Check if l&f style theme is really active else painting performed by
    6365         * Windows Classic theme and there is no such shifting error. */
    64         typedef bool (*IsAppThemedFunction)();
    65         IsAppThemedFunction isAppThemed =
    66             (IsAppThemedFunction) QLibrary::resolve ("uxtheme", "IsAppThemed");
    67         if (isAppThemed && isAppThemed()) sa -= QSize (23, 0);
     66        typedef BOOL (WINAPI *PFNISAPPTHEMED)(VOID);
     67        static PFNISAPPTHEMED s_pfnIsAppThemed = (PFNISAPPTHEMED)~(uintptr_t)0;
     68        if (s_pfnIsAppThemed == (PFNISAPPTHEMED)~(uintptr_t)0 )
     69            s_pfnIsAppThemed = (PFNISAPPTHEMED)RTLdrGetSystemSymbol("uxtheme.dll", "IsAppThemed");
     70
     71        if (s_pfnIsAppThemed && s_pfnIsAppThemed())
     72            sa -= QSize(23, 0);
    6873    }
    6974#endif
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