Changeset 846 for trunk/src/gui/styles/qwindowsvistastyle.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/styles/qwindowsvistastyle.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 43 43 #include "qwindowsvistastyle_p.h" 44 44 #include <private/qstylehelper_p.h> 45 #include <private/qsystemlibrary_p.h> 45 46 46 47 #if !defined(QT_NO_STYLE_WINDOWSVISTA) || defined(QT_PLUGIN) … … 1927 1928 1928 1929 QSize sz(size); 1929 1930 QSize newSize = QWindowsXPStyle::sizeFromContents(type, option, size, widget);1931 1930 switch (type) { 1932 case CT_LineEdit:1933 case CT_ComboBox:1934 {1935 HTHEME theme = pOpenThemeData(0, L"Button");1936 MARGINS borderSize;1937 if (theme) {1938 int result = pGetThemeMargins(theme,1939 NULL,1940 BP_PUSHBUTTON,1941 PBS_NORMAL,1942 TMT_CONTENTMARGINS,1943 NULL,1944 &borderSize);1945 if (result == S_OK) {1946 sz += QSize(borderSize.cxLeftWidth + borderSize.cxRightWidth - 2,1947 borderSize.cyBottomHeight + borderSize.cyTopHeight - 2);1948 }1949 sz += QSize(23, 0); //arrow button1950 }1951 }1952 return sz;1953 1931 case CT_MenuItem: 1954 1932 sz = QWindowsXPStyle::sizeFromContents(type, option, size, widget); … … 1991 1969 break; 1992 1970 } 1993 return newSize;1971 return QWindowsXPStyle::sizeFromContents(type, option, size, widget); 1994 1972 } 1995 1973 … … 2598 2576 if (!tried) { 2599 2577 tried = true; 2600 Q Library themeLib(QLatin1String("uxtheme"));2578 QSystemLibrary themeLib(QLatin1String("uxtheme")); 2601 2579 pSetWindowTheme = (PtrSetWindowTheme )themeLib.resolve("SetWindowTheme"); 2602 2580 pIsThemePartDefined = (PtrIsThemePartDefined )themeLib.resolve("IsThemePartDefined");
Note:
See TracChangeset
for help on using the changeset viewer.