Changeset 46593 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jun 17, 2013 2:32:51 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QILineEdit.cpp
r44529 r46593 1 1 /* $Id$ */ 2 2 /** @file 3 * 4 * VBox frontends: Qt GUI ("VirtualBox"): 5 * QILineEdit class implementation 3 * VirtualBox Qt GUI - QILineEdit class implementation. 6 4 */ 7 5 8 6 /* 9 * Copyright (C) 2008-201 0Oracle Corporation7 * Copyright (C) 2008-2013 Oracle Corporation 10 8 * 11 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 24 22 25 23 #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" 28 30 #endif 29 31 … … 62 64 /* Check if l&f style theme is really active else painting performed by 63 65 * 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); 68 73 } 69 74 #endif
Note:
See TracChangeset
for help on using the changeset viewer.