aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/textutils.h
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-05-24 13:45:35 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-05-25 07:40:47 +0000
commitf3957d383fbe2599637933486f8566596dc8b737 (patch)
tree7b9bd5872c8876583335e32d35d58f347704667f /src/libs/utils/textutils.h
parentd76eab7d2f1f43b97cfe1bbb6eaaf8734c5cb1c9 (diff)
Utils: More forward declarations / drop unused headers [T-Z]
Round 1 - focus on headers. For classes with initial in range [T-Z]. Replace QT_FORWARD_DECLARE_CLASS with QT_BEGIN_NAMESPACE and QT_END_NAMESPACE and forward declare inside. Change-Id: I4ac3a8391e6167aa2db3973a9f94a45ac3c8ebd1 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/libs/utils/textutils.h')
-rw-r--r--src/libs/utils/textutils.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libs/utils/textutils.h b/src/libs/utils/textutils.h
index 272e4911b3..7f68fb47aa 100644
--- a/src/libs/utils/textutils.h
+++ b/src/libs/utils/textutils.h
@@ -25,13 +25,16 @@
#pragma once
-#include "linecolumn.h"
#include "utils_global.h"
+#include "linecolumn.h"
+
#include <QString>
-QT_FORWARD_DECLARE_CLASS(QTextDocument)
-QT_FORWARD_DECLARE_CLASS(QTextCursor)
+QT_BEGIN_NAMESPACE
+class QTextCursor;
+class QTextDocument;
+QT_END_NAMESPACE
namespace Utils {
namespace Text {