diff options
author | David Boddie <dboddie@trolltech.com> | 2009-05-20 13:37:12 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-05-20 13:37:12 (GMT) |
commit | efb14d56ef9cd327f6358f626f79e3ee88078600 (patch) | |
tree | 96cf779eb1f3fe344c9ff440f858ce184f641a07 /examples/tutorials/widgets/windowlayout/main.cpp | |
parent | e28412e4c2389c1765441cec02baed58a63dd29c (diff) | |
download | Qt-efb14d56ef9cd327f6358f626f79e3ee88078600.zip Qt-efb14d56ef9cd327f6358f626f79e3ee88078600.tar.gz Qt-efb14d56ef9cd327f6358f626f79e3ee88078600.tar.bz2 |
Doc: Compile fixes for tutorial examples.
Reviewed-by: Trust Me
Diffstat (limited to 'examples/tutorials/widgets/windowlayout/main.cpp')
-rw-r--r-- | examples/tutorials/widgets/windowlayout/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/tutorials/widgets/windowlayout/main.cpp b/examples/tutorials/widgets/windowlayout/main.cpp index d7c75a3..15a11e1 100644 --- a/examples/tutorials/widgets/windowlayout/main.cpp +++ b/examples/tutorials/widgets/windowlayout/main.cpp @@ -45,18 +45,18 @@ int main(int argc, char *argv[]) { QApplication app(argc, argv); - QWidget *window = new QWidget(); + QWidget window; //! [create, lay out widgets and show] - QLabel *label = new QLabel(tr("Name:")); + QLabel *label = new QLabel(QObject::tr("Name:")); QLineEdit *lineEdit = new QLineEdit(); QHBoxLayout *layout = new QHBoxLayout(); layout->addWidget(label); layout->addWidget(lineEdit); - window->setLayout(layout); + window.setLayout(layout); //! [create, lay out widgets and show] - window->setWindowTitle(tr("Window layout")); - window->show(); + window.setWindowTitle(QObject::tr("Window layout")); + window.show(); return app.exec(); } //! [main program] |