Changeset 846 for trunk/tools/shared/qtpropertybrowser
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 17 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/shared/qtpropertybrowser/qtbuttonpropertybrowser.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) -
trunk/tools/shared/qtpropertybrowser/qtbuttonpropertybrowser.h
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) -
trunk/tools/shared/qtpropertybrowser/qteditorfactory.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) -
trunk/tools/shared/qtpropertybrowser/qteditorfactory.h
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) -
trunk/tools/shared/qtpropertybrowser/qtgroupboxpropertybrowser.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) -
trunk/tools/shared/qtpropertybrowser/qtgroupboxpropertybrowser.h
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) -
trunk/tools/shared/qtpropertybrowser/qtpropertybrowser.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) -
trunk/tools/shared/qtpropertybrowser/qtpropertybrowser.h
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) -
trunk/tools/shared/qtpropertybrowser/qtpropertybrowserutils.cpp
r769 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) -
trunk/tools/shared/qtpropertybrowser/qtpropertybrowserutils_p.h
r769 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) -
trunk/tools/shared/qtpropertybrowser/qtpropertymanager.cpp
r769 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) … … 2400 2400 return QString(); 2401 2401 2402 QLocale loc = it.value();2402 const QLocale loc = it.value(); 2403 2403 2404 2404 int langIdx = 0; 2405 2405 int countryIdx = 0; 2406 metaEnumProvider()->localeToIndex(loc.language(), loc.country(), &langIdx, &countryIdx); 2407 QString str = tr("%1, %2") 2408 .arg(metaEnumProvider()->languageEnumNames().at(langIdx)) 2409 .arg(metaEnumProvider()->countryEnumNames(loc.language()).at(countryIdx)); 2410 return str; 2406 const QtMetaEnumProvider *me = metaEnumProvider(); 2407 me->localeToIndex(loc.language(), loc.country(), &langIdx, &countryIdx); 2408 if (langIdx < 0) { 2409 qWarning("QtLocalePropertyManager::valueText: Unknown language %d", loc.language()); 2410 return tr("<Invalid>"); 2411 } 2412 const QString languageName = me->languageEnumNames().at(langIdx); 2413 if (countryIdx < 0) { 2414 qWarning("QtLocalePropertyManager::valueText: Unknown country %d for %s", loc.country(), qPrintable(languageName)); 2415 return languageName; 2416 } 2417 const QString countryName = me->countryEnumNames(loc.language()).at(countryIdx); 2418 return tr("%1, %2").arg(languageName, countryName); 2411 2419 } 2412 2420 … … 2636 2644 return QString(); 2637 2645 const QPoint v = it.value(); 2638 return QString(tr("(%1, %2)").arg(QString::number(v.x()))2639 .arg(QString::number(v.y())));2646 return tr("(%1, %2)").arg(QString::number(v.x())) 2647 .arg(QString::number(v.y())); 2640 2648 } 2641 2649 … … 2877 2885 const QPointF v = it.value().val; 2878 2886 const int dec = it.value().decimals; 2879 return QString(tr("(%1, %2)").arg(QString::number(v.x(), 'f', dec))2880 .arg(QString::number(v.y(), 'f', dec)));2887 return tr("(%1, %2)").arg(QString::number(v.x(), 'f', dec)) 2888 .arg(QString::number(v.y(), 'f', dec)); 2881 2889 } 2882 2890 … … 3197 3205 return QString(); 3198 3206 const QSize v = it.value().val; 3199 return QString(tr("%1 x %2").arg(QString::number(v.width()))3200 .arg(QString::number(v.height())));3207 return tr("%1 x %2").arg(QString::number(v.width())) 3208 .arg(QString::number(v.height())); 3201 3209 } 3202 3210 … … 3562 3570 const QSizeF v = it.value().val; 3563 3571 const int dec = it.value().decimals; 3564 return QString(tr("%1 x %2").arg(QString::number(v.width(), 'f', dec))3565 .arg(QString::number(v.height(), 'f', dec)));3572 return tr("%1 x %2").arg(QString::number(v.width(), 'f', dec)) 3573 .arg(QString::number(v.height(), 'f', dec)); 3566 3574 } 3567 3575 … … 3955 3963 return QString(); 3956 3964 const QRect v = it.value().val; 3957 return QString(tr("[(%1, %2), %3 x %4]").arg(QString::number(v.x()))3958 .arg(QString::number(v.y()))3959 .arg(QString::number(v.width()))3960 .arg(QString::number(v.height())));3965 return tr("[(%1, %2), %3 x %4]").arg(QString::number(v.x())) 3966 .arg(QString::number(v.y())) 3967 .arg(QString::number(v.width())) 3968 .arg(QString::number(v.height())); 3961 3969 } 3962 3970 -
trunk/tools/shared/qtpropertybrowser/qtpropertymanager.h
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) -
trunk/tools/shared/qtpropertybrowser/qttreepropertybrowser.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) -
trunk/tools/shared/qtpropertybrowser/qttreepropertybrowser.h
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) -
trunk/tools/shared/qtpropertybrowser/qtvariantproperty.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) -
trunk/tools/shared/qtpropertybrowser/qtvariantproperty.h
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)
Note:
See TracChangeset
for help on using the changeset viewer.