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/childwidget | |
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/childwidget')
-rw-r--r-- | examples/tutorials/widgets/childwidget/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/tutorials/widgets/childwidget/main.cpp b/examples/tutorials/widgets/childwidget/main.cpp index 99235bd..8674b6e 100644 --- a/examples/tutorials/widgets/childwidget/main.cpp +++ b/examples/tutorials/widgets/childwidget/main.cpp @@ -45,13 +45,13 @@ int main(int argc, char *argv[]) { QApplication app(argc, argv); - QWidget *window = new QWidget(); - window->resize(320, 240); - window->setWindowTitle(tr("Child widget")); - window->show(); + QWidget window; + window.resize(320, 240); + window.setWindowTitle(QObject::tr("Child widget")); + window.show(); //! [create, position and show] - QPushButton *button = new QPushButton(tr("Press me"), window); + QPushButton *button = new QPushButton(QObject::tr("Press me"), &window); button->move(100, 100); button->show(); //! [create, position and show] |