From 4ba1f6ec607f05807f39a271e7e4c457fe3b0803 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Fri, 16 Jun 2017 17:38:29 +0200 Subject: TextFinder: Improve code and documentation Task-number: QTBUG-61419 Change-Id: Ib00152f0a04546d275a40a5d57fe046b82ebc421 GPush-Base: 8abb03b0d84a3a94f7db41e010f69955488ea893 Reviewed-by: Martin Smith --- examples/uitools/textfinder/main.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'examples/uitools/textfinder/main.cpp') 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 #include "textfinder.h" +#include //! [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(); } -- cgit v1.2.3