diff options
Diffstat (limited to 'examples/linguist/trollprint/mainwindow.cpp')
-rw-r--r-- | examples/linguist/trollprint/mainwindow.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/linguist/trollprint/mainwindow.cpp b/examples/linguist/trollprint/mainwindow.cpp index eb8fef9a4..b099af15b 100644 --- a/examples/linguist/trollprint/mainwindow.cpp +++ b/examples/linguist/trollprint/mainwindow.cpp @@ -15,15 +15,15 @@ MainWindow::MainWindow() createMenus(); //! [0] - setWindowTitle(tr("Troll Print 1.0")); + setWindowTitle(tr("Troll Print %1").arg("1.0")); //! [0] } void MainWindow::about() { - QMessageBox::information(this, tr("About Troll Print 1.0"), - tr("Troll Print 1.0.\n\n" - "Copyright 1999 Software, Inc.")); + QMessageBox::information(this, tr("About Troll Print %1").arg("1.0"), + tr("Troll Print %1.\n\n" + "Copyright 1999 Software, Inc.").arg("1.0")); } //! [1] |