diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-10 19:30:29 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-10 19:30:29 (GMT) |
commit | c1be5360025d9620d731e920300a75459a1eb503 (patch) | |
tree | b0f7db4ccae245f305459b92564f39bb0548d657 /tools/shared/qtpropertybrowser/qtpropertybrowserutils.cpp | |
parent | edd1dc8caedf099422b5efeed48b7feea0927681 (diff) | |
parent | 31ba9218c63b6c0177fabae3ff33cc5f3c2df8d5 (diff) | |
download | Qt-c1be5360025d9620d731e920300a75459a1eb503.zip Qt-c1be5360025d9620d731e920300a75459a1eb503.tar.gz Qt-c1be5360025d9620d731e920300a75459a1eb503.tar.bz2 |
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/berlin-staging-1 into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/berlin-staging-1:
Fix warnings ~QX11PixmapData(): QPixmap objects must be destroyed..
Diffstat (limited to 'tools/shared/qtpropertybrowser/qtpropertybrowserutils.cpp')
-rw-r--r-- | tools/shared/qtpropertybrowser/qtpropertybrowserutils.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tools/shared/qtpropertybrowser/qtpropertybrowserutils.cpp b/tools/shared/qtpropertybrowser/qtpropertybrowserutils.cpp index b84de11..0b14292 100644 --- a/tools/shared/qtpropertybrowser/qtpropertybrowserutils.cpp +++ b/tools/shared/qtpropertybrowser/qtpropertybrowserutils.cpp @@ -93,15 +93,23 @@ QtCursorDatabase::QtCursorDatabase() QApplication::UnicodeUTF8), QIcon(QLatin1String(":/trolltech/qtpropertybrowser/images/cursor-busy.png"))); } +void QtCursorDatabase::clear() +{ + m_cursorNames.clear(); + m_cursorIcons.clear(); + m_valueToCursorShape.clear(); + m_cursorShapeToValue.clear(); +} + void QtCursorDatabase::appendCursor(Qt::CursorShape shape, const QString &name, const QIcon &icon) { if (m_cursorShapeToValue.contains(shape)) return; - int value = m_cursorNames.count(); + const int value = m_cursorNames.count(); m_cursorNames.append(name); - m_cursorIcons[value] = icon; - m_valueToCursorShape[value] = shape; - m_cursorShapeToValue[shape] = value; + m_cursorIcons.insert(value, icon); + m_valueToCursorShape.insert(value, shape); + m_cursorShapeToValue.insert(shape, value); } QStringList QtCursorDatabase::cursorShapeNames() const |