@@ -55,44 +55,44 @@ QT_BEGIN_NAMESPACE
55
55
56
56
QtCursorDatabase::QtCursorDatabase ()
57
57
{
58
- appendCursor (Qt::ArrowCursor, QApplication ::translate (" QtCursorDatabase" , " Arrow" , 0 ,
59
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-arrow.png" )));
60
- appendCursor (Qt::UpArrowCursor, QApplication ::translate (" QtCursorDatabase" , " Up Arrow" , 0 ,
61
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-uparrow.png" )));
62
- appendCursor (Qt::CrossCursor, QApplication ::translate (" QtCursorDatabase" , " Cross" , 0 ,
63
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-cross.png" )));
64
- appendCursor (Qt::WaitCursor, QApplication ::translate (" QtCursorDatabase" , " Wait" , 0 ,
65
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-wait.png" )));
66
- appendCursor (Qt::IBeamCursor, QApplication ::translate (" QtCursorDatabase" , " IBeam" , 0 ,
67
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-ibeam.png" )));
68
- appendCursor (Qt::SizeVerCursor, QApplication ::translate (" QtCursorDatabase" , " Size Vertical" , 0 ,
69
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-sizev.png" )));
70
- appendCursor (Qt::SizeHorCursor, QApplication ::translate (" QtCursorDatabase" , " Size Horizontal" , 0 ,
71
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-sizeh.png" )));
72
- appendCursor (Qt::SizeFDiagCursor, QApplication ::translate (" QtCursorDatabase" , " Size Backslash" , 0 ,
73
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-sizef.png" )));
74
- appendCursor (Qt::SizeBDiagCursor, QApplication ::translate (" QtCursorDatabase" , " Size Slash" , 0 ,
75
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-sizeb.png" )));
76
- appendCursor (Qt::SizeAllCursor, QApplication ::translate (" QtCursorDatabase" , " Size All" , 0 ,
77
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-sizeall.png" )));
78
- appendCursor (Qt::BlankCursor, QApplication ::translate (" QtCursorDatabase" , " Blank" , 0 ,
79
- QApplication::UnicodeUTF8), QIcon ());
80
- appendCursor (Qt::SplitVCursor, QApplication ::translate (" QtCursorDatabase" , " Split Vertical" , 0 ,
81
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-vsplit.png" )));
82
- appendCursor (Qt::SplitHCursor, QApplication ::translate (" QtCursorDatabase" , " Split Horizontal" , 0 ,
83
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-hsplit.png" )));
84
- appendCursor (Qt::PointingHandCursor, QApplication ::translate (" QtCursorDatabase" , " Pointing Hand" , 0 ,
85
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-hand.png" )));
86
- appendCursor (Qt::ForbiddenCursor, QApplication ::translate (" QtCursorDatabase" , " Forbidden" , 0 ,
87
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-forbidden.png" )));
88
- appendCursor (Qt::OpenHandCursor, QApplication ::translate (" QtCursorDatabase" , " Open Hand" , 0 ,
89
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-openhand.png" )));
90
- appendCursor (Qt::ClosedHandCursor, QApplication ::translate (" QtCursorDatabase" , " Closed Hand" , 0 ,
91
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-closedhand.png" )));
92
- appendCursor (Qt::WhatsThisCursor, QApplication ::translate (" QtCursorDatabase" , " What's This" , 0 ,
93
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-whatsthis.png" )));
94
- appendCursor (Qt::BusyCursor, QApplication ::translate (" QtCursorDatabase" , " Busy" , 0 ,
95
- QApplication::UnicodeUTF8), QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-busy.png" )));
58
+ appendCursor (Qt::ArrowCursor, QCoreApplication ::translate (" QtCursorDatabase" , " Arrow" ) ,
59
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-arrow.png" )));
60
+ appendCursor (Qt::UpArrowCursor, QCoreApplication ::translate (" QtCursorDatabase" , " Up Arrow" ) ,
61
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-uparrow.png" )));
62
+ appendCursor (Qt::CrossCursor, QCoreApplication ::translate (" QtCursorDatabase" , " Cross" ) ,
63
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-cross.png" )));
64
+ appendCursor (Qt::WaitCursor, QCoreApplication ::translate (" QtCursorDatabase" , " Wait" ) ,
65
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-wait.png" )));
66
+ appendCursor (Qt::IBeamCursor, QCoreApplication ::translate (" QtCursorDatabase" , " IBeam" ) ,
67
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-ibeam.png" )));
68
+ appendCursor (Qt::SizeVerCursor, QCoreApplication ::translate (" QtCursorDatabase" , " Size Vertical" ) ,
69
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-sizev.png" )));
70
+ appendCursor (Qt::SizeHorCursor, QCoreApplication ::translate (" QtCursorDatabase" , " Size Horizontal" ) ,
71
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-sizeh.png" )));
72
+ appendCursor (Qt::SizeFDiagCursor, QCoreApplication ::translate (" QtCursorDatabase" , " Size Backslash" ) ,
73
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-sizef.png" )));
74
+ appendCursor (Qt::SizeBDiagCursor, QCoreApplication ::translate (" QtCursorDatabase" , " Size Slash" ) ,
75
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-sizeb.png" )));
76
+ appendCursor (Qt::SizeAllCursor, QCoreApplication ::translate (" QtCursorDatabase" , " Size All" ) ,
77
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-sizeall.png" )));
78
+ appendCursor (Qt::BlankCursor, QCoreApplication ::translate (" QtCursorDatabase" , " Blank" ) ,
79
+ QIcon ());
80
+ appendCursor (Qt::SplitVCursor, QCoreApplication ::translate (" QtCursorDatabase" , " Split Vertical" ) ,
81
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-vsplit.png" )));
82
+ appendCursor (Qt::SplitHCursor, QCoreApplication ::translate (" QtCursorDatabase" , " Split Horizontal" ) ,
83
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-hsplit.png" )));
84
+ appendCursor (Qt::PointingHandCursor, QCoreApplication ::translate (" QtCursorDatabase" , " Pointing Hand" ) ,
85
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-hand.png" )));
86
+ appendCursor (Qt::ForbiddenCursor, QCoreApplication ::translate (" QtCursorDatabase" , " Forbidden" ) ,
87
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-forbidden.png" )));
88
+ appendCursor (Qt::OpenHandCursor, QCoreApplication ::translate (" QtCursorDatabase" , " Open Hand" ) ,
89
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-openhand.png" )));
90
+ appendCursor (Qt::ClosedHandCursor, QCoreApplication ::translate (" QtCursorDatabase" , " Closed Hand" ) ,
91
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-closedhand.png" )));
92
+ appendCursor (Qt::WhatsThisCursor, QCoreApplication ::translate (" QtCursorDatabase" , " What's This" ) ,
93
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-whatsthis.png" )));
94
+ appendCursor (Qt::BusyCursor, QCoreApplication ::translate (" QtCursorDatabase" , " Busy" ) ,
95
+ QIcon (QLatin1String (" :/qt-project.org/qtpropertybrowser/images/cursor-busy.png" )));
96
96
}
97
97
98
98
void QtCursorDatabase::clear ()
@@ -184,11 +184,8 @@ QIcon QtPropertyBrowserUtils::brushValueIcon(const QBrush &b)
184
184
185
185
QString QtPropertyBrowserUtils::colorValueText (const QColor &c)
186
186
{
187
- return QApplication::translate (" QtPropertyBrowserUtils" , " [%1, %2, %3] (%4)" , 0 , QApplication::UnicodeUTF8)
188
- .arg (QString::number (c.red ()))
189
- .arg (QString::number (c.green ()))
190
- .arg (QString::number (c.blue ()))
191
- .arg (QString::number (c.alpha ()));
187
+ return QCoreApplication::translate (" QtPropertyBrowserUtils" , " [%1, %2, %3] (%4)" )
188
+ .arg (c.red ()).arg (c.green ()).arg (c.blue ()).arg (c.alpha ());
192
189
}
193
190
194
191
QPixmap QtPropertyBrowserUtils::fontValuePixmap (const QFont &font)
@@ -214,9 +211,8 @@ QIcon QtPropertyBrowserUtils::fontValueIcon(const QFont &f)
214
211
215
212
QString QtPropertyBrowserUtils::fontValueText (const QFont &f)
216
213
{
217
- return QApplication::translate (" QtPropertyBrowserUtils" , " [%1, %2]" , 0 , QApplication::UnicodeUTF8)
218
- .arg (f.family ())
219
- .arg (f.pointSize ());
214
+ return QCoreApplication::translate (" QtPropertyBrowserUtils" , " [%1, %2]" )
215
+ .arg (f.family ()).arg (f.pointSize ());
220
216
}
221
217
222
218
0 commit comments