forked from qt-creator/qt-creator
Utils: Tr::tr
Change-Id: Ic03e20993f05fb5b49a12c891d86afb2c8e18e08 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
#include "environment.h"
|
||||
#include "hostosinfo.h"
|
||||
#include "utilstr.h"
|
||||
|
||||
#include <QDialogButtonBox>
|
||||
#include <QLabel>
|
||||
@@ -74,8 +75,8 @@ NameValuesDialog::NameValuesDialog(const QString &windowTitle, const QString &he
|
||||
auto box = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
|
||||
Qt::Horizontal,
|
||||
this);
|
||||
box->button(QDialogButtonBox::Ok)->setText(tr("&OK"));
|
||||
box->button(QDialogButtonBox::Cancel)->setText(tr("&Cancel"));
|
||||
box->button(QDialogButtonBox::Ok)->setText(Tr::tr("&OK"));
|
||||
box->button(QDialogButtonBox::Cancel)->setText(Tr::tr("&Cancel"));
|
||||
connect(box, &QDialogButtonBox::accepted, this, &QDialog::accept);
|
||||
connect(box, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user