QColorDialog: Move string into retranslateStrings()
Change-Id: I802b3e3463f77777cb0f25b60fc069da32d1c467 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
560cd95298
commit
6475462c6f
@ -1662,7 +1662,7 @@ void QColorDialogPrivate::initWidgets()
|
|||||||
|
|
||||||
#if !defined(Q_OS_WINCE) && !defined(QT_SMALL_COLORDIALOG)
|
#if !defined(Q_OS_WINCE) && !defined(QT_SMALL_COLORDIALOG)
|
||||||
// The screen color picker button
|
// The screen color picker button
|
||||||
screenColorPickerButton = new QPushButton(QColorDialog::tr("&Pick Screen Color"));
|
screenColorPickerButton = new QPushButton();
|
||||||
leftLay->addWidget(screenColorPickerButton);
|
leftLay->addWidget(screenColorPickerButton);
|
||||||
lblScreenColorInfo = new QLabel(QLatin1String("\n"));
|
lblScreenColorInfo = new QLabel(QLatin1String("\n"));
|
||||||
leftLay->addWidget(lblScreenColorInfo);
|
leftLay->addWidget(lblScreenColorInfo);
|
||||||
@ -1801,6 +1801,7 @@ void QColorDialogPrivate::retranslateStrings()
|
|||||||
lblBasicColors->setText(QColorDialog::tr("&Basic colors"));
|
lblBasicColors->setText(QColorDialog::tr("&Basic colors"));
|
||||||
lblCustomColors->setText(QColorDialog::tr("&Custom colors"));
|
lblCustomColors->setText(QColorDialog::tr("&Custom colors"));
|
||||||
addCusBt->setText(QColorDialog::tr("&Add to Custom Colors"));
|
addCusBt->setText(QColorDialog::tr("&Add to Custom Colors"));
|
||||||
|
screenColorPickerButton->setText(QColorDialog::tr("&Pick Screen Color"));
|
||||||
}
|
}
|
||||||
|
|
||||||
cs->retranslateStrings();
|
cs->retranslateStrings();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user