summaryrefslogtreecommitdiffstats
path: root/examples/tutorials/widgets/childwidget/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorials/widgets/childwidget/main.cpp')
-rw-r--r--examples/tutorials/widgets/childwidget/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/tutorials/widgets/childwidget/main.cpp b/examples/tutorials/widgets/childwidget/main.cpp
index 8674b6e..fd50b1d 100644
--- a/examples/tutorials/widgets/childwidget/main.cpp
+++ b/examples/tutorials/widgets/childwidget/main.cpp
@@ -47,11 +47,12 @@ int main(int argc, char *argv[])
QApplication app(argc, argv);
QWidget window;
window.resize(320, 240);
- window.setWindowTitle(QObject::tr("Child widget"));
+ window.setWindowTitle(QApplication::translate("childwidget", "Child widget"));
window.show();
//! [create, position and show]
- QPushButton *button = new QPushButton(QObject::tr("Press me"), &window);
+ QPushButton *button = new QPushButton(
+ QApplication::translate("childwidget", "Press me"), &window);
button->move(100, 100);
button->show();
//! [create, position and show]