summaryrefslogtreecommitdiffstats
path: root/examples/uitools/textfinder/main.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2017-06-16 17:38:29 +0200
committerKai Koehne <kai.koehne@qt.io>2017-06-22 09:50:33 +0000
commit4ba1f6ec607f05807f39a271e7e4c457fe3b0803 (patch)
tree977e9cfec3222eac47f4a50445405ba53e7fc996 /examples/uitools/textfinder/main.cpp
parent6da03454544364ffe414b7c03cfcb0810abb43d4 (diff)
TextFinder: Improve code and documentation
Task-number: QTBUG-61419 Change-Id: Ib00152f0a04546d275a40a5d57fe046b82ebc421 GPush-Base: 8abb03b0d84a3a94f7db41e010f69955488ea893 Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'examples/uitools/textfinder/main.cpp')
-rw-r--r--examples/uitools/textfinder/main.cpp9
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();
}