aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/quickcontrols2/texteditor/documenthandler.cpp3
-rw-r--r--examples/quickcontrols2/texteditor/documenthandler.h2
-rw-r--r--examples/quickcontrols2/texteditor/texteditor.pro6
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