Changeset 846 for trunk/src/gui/styles/qcleanlooksstyle.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/qcleanlooksstyle.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) … … 45 45 #if !defined(QT_NO_STYLE_CLEANLOOKS) || defined(QT_PLUGIN) 46 46 47 #include <private/qstylehelper_p.h>48 47 #include "qwindowsstyle_p.h" 49 48 #include <qcombobox.h> … … 68 67 #include <qwizard.h> 69 68 #include <qlibrary.h> 69 #include <private/qstylehelper_p.h> 70 70 71 71 #define CL_MAX(a,b) (a)>(b) ? (a):(b) // ### qMin/qMax does not work for vc6 … … 885 885 painter->restore(); 886 886 break; 887 #ifndef QT_NO_LINE DIT887 #ifndef QT_NO_LINEEDIT 888 888 case PE_FrameLineEdit: 889 889 // fall through … … 1398 1398 1399 1399 QColor highlight = option->palette.highlight().color(); 1400 QColor highlightText = option->palette.highlightedText().color();1401 1400 1402 1401 switch(element) { … … 2159 2158 2160 2159 if (button->features & QStyleOptionButton::HasMenu) 2161 ir = ir.adjusted(0, 0, -p ixelMetric(PM_MenuButtonIndicator, button, widget), 0);2160 ir = ir.adjusted(0, 0, -proxy()->pixelMetric(PM_MenuButtonIndicator, button, widget), 0); 2162 2161 proxy()->drawItemText(painter, ir, tf, button->palette, (button->state & State_Enabled), 2163 2162 button->text, QPalette::ButtonText); … … 2724 2723 // Fill title bar gradient 2725 2724 QColor titlebarColor = QColor(active ? highlight: palette.background().color()); 2726 QColor titleBarGradientStop(active ? highlight.darker(150): palette.background().color().darker(120));2727 2725 QLinearGradient gradient(option->rect.center().x(), option->rect.top(), 2728 2726 option->rect.center().x(), option->rect.bottom()); … … 2987 2985 painter->fillRect(option->rect, option->palette.background()); 2988 2986 2989 QRect rect = scrollBar->rect;2990 2987 QRect scrollBarSubLine = proxy()->subControlRect(control, scrollBar, SC_ScrollBarSubLine, widget); 2991 2988 QRect scrollBarAddLine = proxy()->subControlRect(control, scrollBar, SC_ScrollBarAddLine, widget); … … 3715 3712 int ret = -1; 3716 3713 switch (metric) { 3714 case PM_ToolTipLabelFrameWidth: 3715 ret = 2; 3716 break; 3717 3717 case PM_ButtonDefaultIndicator: 3718 3718 ret = 0; … … 4015 4015 case SC_SliderHandle: { 4016 4016 if (slider->orientation == Qt::Horizontal) { 4017 rect.setHeight(p ixelMetric(PM_SliderThickness));4018 rect.setWidth(p ixelMetric(PM_SliderLength));4017 rect.setHeight(proxy()->pixelMetric(PM_SliderThickness)); 4018 rect.setWidth(proxy()->pixelMetric(PM_SliderLength)); 4019 4019 int centerY = slider->rect.center().y() - rect.height() / 2; 4020 4020 if (slider->tickPosition & QSlider::TicksAbove) … … 4024 4024 rect.moveTop(centerY); 4025 4025 } else { 4026 rect.setWidth(p ixelMetric(PM_SliderThickness));4027 rect.setHeight(p ixelMetric(PM_SliderLength));4026 rect.setWidth(proxy()->pixelMetric(PM_SliderThickness)); 4027 rect.setHeight(proxy()->pixelMetric(PM_SliderLength)); 4028 4028 int centerX = slider->rect.center().x() - rect.width() / 2; 4029 4029 if (slider->tickPosition & QSlider::TicksAbove)
Note:
See TracChangeset
for help on using the changeset viewer.