Changeset 846 for trunk/src/gui/image/qiconloader.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/image/qiconloader.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 63 63 #include <private/qt_x11_p.h> 64 64 #endif 65 66 65 67 66 68 QT_BEGIN_NAMESPACE … … 150 152 if (m_iconDirs.isEmpty()) { 151 153 m_iconDirs = qt_guiPlatformPlugin()->iconThemeSearchPaths(); 152 // Al lways add resource directory as search path154 // Always add resource directory as search path 153 155 m_iconDirs.append(QLatin1String(":/icons")); 154 156 } … … 265 267 iconEntry->dir = dirInfo; 266 268 iconEntry->filename = currentDir.filePath(iconName + pngext); 267 // Notice we ensure that pixmap entries al lways come before269 // Notice we ensure that pixmap entries always come before 268 270 // scalable to preserve search order afterwards 269 271 entries.prepend(iconEntry); … … 489 491 490 492 int actualSize = qMin(size.width(), size.height()); 491 QString key = QLatin1String("$qt_theme_") 492 + QString::number(basePixmap.cacheKey(), 16) 493 + QLatin1Char('_') 494 + QString::number(mode) 495 + QLatin1Char('_') 496 + QString::number(qApp->palette().cacheKey(), 16) 497 + QLatin1Char('_') 498 + QString::number(actualSize); 493 494 QString key = QLatin1Literal("$qt_theme_") 495 % HexString<qint64>(basePixmap.cacheKey()) 496 % HexString<int>(mode) 497 % HexString<qint64>(qApp->palette().cacheKey()) 498 % HexString<int>(actualSize); 499 499 500 500 QPixmap cachedPixmap; … … 555 555 } 556 556 break; 557 558 559 560 561 562 557 563 default: 558 564 QIconEngineV2::virtual_hook(id, data);
Note:
See TracChangeset
for help on using the changeset viewer.