Changeset 846 for trunk/src/gui/styles/qwindowsxpstyle.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/qwindowsxpstyle.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) … … 49 49 #include <private/qstylehelper_p.h> 50 50 #include <private/qwidget_p.h> 51 #include < qlibrary.h>51 #include <private/qsystemlibrary_p.h> 52 52 #include <qpainter.h> 53 53 #include <qpaintengine.h> … … 303 303 limboWidget->createWinId(); 304 304 limboWidget->setObjectName(QLatin1String("xp_limbo_widget")); 305 // We don t need this internal widget to appear in QApplication::topLevelWidgets()305 // We don't need this internal widget to appear in QApplication::topLevelWidgets() 306 306 if (QWidgetPrivate::allWidgets) 307 307 QWidgetPrivate::allWidgets->remove(limboWidget); … … 345 345 if (!tried) { 346 346 tried = true; 347 Q Library themeLib(QLatin1String("uxtheme"));347 QSystemLibrary themeLib(QLatin1String("uxtheme")); 348 348 pIsAppThemed = (PtrIsAppThemed)themeLib.resolve("IsAppThemed"); 349 349 if (pIsAppThemed) { … … 2155 2155 p->setBrush(Qt::NoBrush); 2156 2156 if (checked) 2157 p->drawRect(vIconRect.adjusted(-1, - 2, 1, 1));2157 p->drawRect(vIconRect.adjusted(-1, -1, 0, 0)); 2158 2158 p->drawPixmap(vIconRect.topLeft(), pixmap); 2159 2159 … … 3679 3679 borderSize.cyBottomHeight + borderSize.cyTopHeight - 2); 3680 3680 } 3681 sz += QSize(23, 0); //arrow button 3681 const int textMargins = 2*(proxy()->pixelMetric(PM_FocusFrameHMargin) + 1); 3682 sz += QSize(qMax(pixelMetric(QStyle::PM_ScrollBarExtent, option, widget) 3683 + textMargins, 23), 0); //arrow button 3682 3684 } 3683 3685 }
Note:
See TracChangeset
for help on using the changeset viewer.