diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2016-08-11 21:55:35 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2016-08-12 10:51:21 +0000 |
commit | bb3453aeadf1aa3a53f2bf3c8d55b3ae3f4543b0 (patch) | |
tree | ab72bee05b5edb24fce9ba0ca99c7acd8e02111d /examples | |
parent | b36652f9065b6ef892f121f4b29fe90853747fe9 (diff) |
texteditor: cosmetic cleanup
Change-Id: Id1d5f0f8c1e7851ea33241fa09af5c0029b74db3
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/quickcontrols2/texteditor/documenthandler.cpp | 3 | ||||
-rw-r--r-- | examples/quickcontrols2/texteditor/documenthandler.h | 2 | ||||
-rw-r--r-- | examples/quickcontrols2/texteditor/texteditor.pro | 6 |
3 files changed, 5 insertions, 6 deletions
diff --git a/examples/quickcontrols2/texteditor/documenthandler.cpp b/examples/quickcontrols2/texteditor/documenthandler.cpp index 9b8113c8..7a7934b4 100644 --- a/examples/quickcontrols2/texteditor/documenthandler.cpp +++ b/examples/quickcontrols2/texteditor/documenthandler.cpp @@ -50,13 +50,12 @@ #include "documenthandler.h" +#include <QFile> #include <QFileInfo> -#include <QFontDatabase> #include <QQmlFile> #include <QQuickTextDocument> #include <QTextCharFormat> #include <QTextCodec> -#include <QTextCursor> #include <QTextDocument> DocumentHandler::DocumentHandler(QObject *parent) diff --git a/examples/quickcontrols2/texteditor/documenthandler.h b/examples/quickcontrols2/texteditor/documenthandler.h index dafc78b7..dc6c9b22 100644 --- a/examples/quickcontrols2/texteditor/documenthandler.h +++ b/examples/quickcontrols2/texteditor/documenthandler.h @@ -173,4 +173,4 @@ private: QUrl m_fileUrl; }; -#endif +#endif // DOCUMENTHANDLER_H diff --git a/examples/quickcontrols2/texteditor/texteditor.pro b/examples/quickcontrols2/texteditor/texteditor.pro index 9a955a89..ed645ca7 100644 --- a/examples/quickcontrols2/texteditor/texteditor.pro +++ b/examples/quickcontrols2/texteditor/texteditor.pro @@ -2,6 +2,9 @@ TEMPLATE = app TARGET = texteditor QT += quick quickcontrols2 widgets +HEADERS += \ + documenthandler.h + SOURCES += \ texteditor.cpp \ documenthandler.cpp @@ -14,6 +17,3 @@ RESOURCES += \ target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/texteditor INSTALLS += target - -HEADERS += \ - documenthandler.h |