Changeset 846 for trunk/tools/designer/src/lib/shared/formwindowbase.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/tools/designer/src/lib/shared/formwindowbase.cpp
r651 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]) … … 73 73 #include <QtGui/QMenu> 74 74 #include <QtGui/QAction> 75 75 76 76 77 QT_BEGIN_NAMESPACE … … 182 183 while (itIndex.hasNext()) { 183 184 const int index = itIndex.next().key(); 184 sheet->setProperty(index, sheet->property(index)); 185 const QVariant newValue = sheet->property(index); 186 if (qobject_cast<QLabel *>(sheet->object()) && sheet->propertyName(index) == QLatin1String("text")) { 187 const PropertySheetStringValue newString = qVariantValue<PropertySheetStringValue>(newValue); 188 // optimize a bit, reset only if the text value might contain a reference to qt resources 189 // (however reloading of icons other than taken from resources might not work here) 190 if (newString.value().contains(QLatin1String(":/"))) { 191 const QVariant resetValue = qVariantFromValue(PropertySheetStringValue()); 192 sheet->setProperty(index, resetValue); 193 } 194 } 195 sheet->setProperty(index, newValue); 185 196 } 186 197 if (QTabWidget *tabWidget = qobject_cast<QTabWidget *>(sheet->object())) {
Note:
See TracChangeset
for help on using the changeset viewer.