Changeset 846 for trunk/src/gui/styles/qstylehelper.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/qstylehelper.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) … … 40 40 ****************************************************************************/ 41 41 42 #include "qstylehelper_p.h"43 44 42 #include <qstyleoption.h> 45 43 #include <qpainter.h> … … 55 53 #endif 56 54 55 #include "qstylehelper_p.h" 56 #include <qstringbuilder.h> 57 57 58 QT_BEGIN_NAMESPACE 58 59 … … 62 63 { 63 64 const QStyleOptionComplex *complexOption = qstyleoption_cast<const QStyleOptionComplex *>(option); 64 QString tmp = QString::fromLatin1("%1-%2-%3-%4-%5-%6x%7").arg(key).arg(uint(option->state)).arg(option->direction) 65 .arg(complexOption ? uint(complexOption->activeSubControls) : uint(0)) 66 .arg(option->palette.cacheKey()).arg(size.width()).arg(size.height()); 65 QString tmp = key % HexString<uint>(option->state) 66 % HexString<uint>(option->direction) 67 % HexString<uint>(complexOption ? uint(complexOption->activeSubControls) : 0u) 68 % HexString<quint64>(option->palette.cacheKey()) 69 % HexString<uint>(size.width()) 70 % HexString<uint>(size.height()); 71 67 72 #ifndef QT_NO_SPINBOX 68 73 if (const QStyleOptionSpinBox *spinBox = qstyleoption_cast<const QStyleOptionSpinBox *>(option)) { 69 tmp.append(QLatin1Char('-')); 70 tmp.append(QString::number(spinBox->buttonSymbols)); 71 tmp.append(QLatin1Char('-')); 72 tmp.append(QString::number(spinBox->stepEnabled)); 73 tmp.append(QLatin1Char('-')); 74 tmp.append(QLatin1Char(spinBox->frame ? '1' : '0')); 74 tmp = tmp % HexString<uint>(spinBox->buttonSymbols) 75 % HexString<uint>(spinBox->stepEnabled) 76 % QLatin1Char(spinBox->frame ? '1' : '0'); ; 75 77 } 76 78 #endif // QT_NO_SPINBOX
Note:
See TracChangeset
for help on using the changeset viewer.