diff options
author | Sérgio Martins <sergio.martins@kdab.com> | 2014-12-22 21:49:49 +0000 |
---|---|---|
committer | Sérgio Martins <sergio.martins@kdab.com> | 2014-12-23 16:05:45 +0100 |
commit | 6475462c6fdf28f40a35cb6926b2f1f58187eb8a (patch) | |
tree | 77d87e7f1c1fcdd4e33b929c52f4fef20d3b4e96 /src/widgets/dialogs/qcolordialog.cpp | |
parent | 560cd95298e76ee99b8d964d8ad53e0625b35f68 (diff) |
QColorDialog: Move string into retranslateStrings()
Change-Id: I802b3e3463f77777cb0f25b60fc069da32d1c467
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/widgets/dialogs/qcolordialog.cpp')
-rw-r--r-- | src/widgets/dialogs/qcolordialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/dialogs/qcolordialog.cpp b/src/widgets/dialogs/qcolordialog.cpp index e34364bde0..14853f3895 100644 --- a/src/widgets/dialogs/qcolordialog.cpp +++ b/src/widgets/dialogs/qcolordialog.cpp @@ -1662,7 +1662,7 @@ void QColorDialogPrivate::initWidgets() #if !defined(Q_OS_WINCE) && !defined(QT_SMALL_COLORDIALOG) // The screen color picker button - screenColorPickerButton = new QPushButton(QColorDialog::tr("&Pick Screen Color")); + screenColorPickerButton = new QPushButton(); leftLay->addWidget(screenColorPickerButton); lblScreenColorInfo = new QLabel(QLatin1String("\n")); leftLay->addWidget(lblScreenColorInfo); @@ -1801,6 +1801,7 @@ void QColorDialogPrivate::retranslateStrings() lblBasicColors->setText(QColorDialog::tr("&Basic colors")); lblCustomColors->setText(QColorDialog::tr("&Custom colors")); addCusBt->setText(QColorDialog::tr("&Add to Custom Colors")); + screenColorPickerButton->setText(QColorDialog::tr("&Pick Screen Color")); } cs->retranslateStrings(); |