summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/widgets/windowlayout/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorials/widgets/windowlayout/main.cpp')
-rw-r--r--examples/tutorials/widgets/windowlayout/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/tutorials/widgets/windowlayout/main.cpp b/examples/tutorials/widgets/windowlayout/main.cpp
index 15a11e1..c30d669 100644
--- a/examples/tutorials/widgets/windowlayout/main.cpp
+++ b/examples/tutorials/widgets/windowlayout/main.cpp
@@ -47,7 +47,7 @@ int main(int argc, char *argv[])
QApplication app(argc, argv);
QWidget window;
//! [create, lay out widgets and show]
- QLabel *label = new QLabel(QObject::tr("Name:"));
+ QLabel *label = new QLabel(QApplication::translate("windowlayout", "Name:"));
QLineEdit *lineEdit = new QLineEdit();
QHBoxLayout *layout = new QHBoxLayout();
@@ -55,7 +55,8 @@ int main(int argc, char *argv[])
layout->addWidget(lineEdit);
window.setLayout(layout);
//! [create, lay out widgets and show]
- window.setWindowTitle(QObject::tr("Window layout"));
+ window.setWindowTitle(
+ QApplication::translate("windowlayout", "Window layout"));
window.show();
return app.exec();
}