diff options
Diffstat (limited to 'examples/uitools/textfinder/main.cpp')
-rw-r--r-- | examples/uitools/textfinder/main.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/uitools/textfinder/main.cpp b/examples/uitools/textfinder/main.cpp index 9dab51e19..3db26ebe7 100644 --- a/examples/uitools/textfinder/main.cpp +++ b/examples/uitools/textfinder/main.cpp @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Copyright (C) 2016 The Qt Company Ltd. +** Copyright (C) 2017 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the examples of the Qt Toolkit. @@ -48,17 +48,16 @@ ** ****************************************************************************/ -#include <QApplication> #include "textfinder.h" +#include <QApplication> //! [0] int main(int argc, char *argv[]) { - Q_INIT_RESOURCE(textfinder); QApplication app(argc, argv); - TextFinder *textFinder = new TextFinder; - textFinder->show(); + TextFinder textFinder; + textFinder.show(); return app.exec(); } |