diff options
Diffstat (limited to 'examples/tutorials/widgets/toplevel/main.cpp')
-rw-r--r-- | examples/tutorials/widgets/toplevel/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/tutorials/widgets/toplevel/main.cpp b/examples/tutorials/widgets/toplevel/main.cpp index 25ebd3f..f18fa6b 100644 --- a/examples/tutorials/widgets/toplevel/main.cpp +++ b/examples/tutorials/widgets/toplevel/main.cpp @@ -50,7 +50,8 @@ int main(int argc, char *argv[]) window.resize(320, 240); window.show(); //! [create, resize and show] - window.setWindowTitle(QObject::tr("Top-level widget")); + window.setWindowTitle( + QApplication::translate("toplevel", "Top-level widget")); return app.exec(); } //! [main program] |