diff options
author | Cristian Adam <cristian.adam@qt.io> | 2019-09-23 17:58:34 +0200 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2019-09-24 16:05:23 +0000 |
commit | f88ad0e9d04aac2ef66367e1f661d15644cbf8a4 (patch) | |
tree | bb5b2d24a82198040c3d456ccf363148e381e565 /src/shared | |
parent | 4ea0d22d4c3536ac5fc3367c56502a61f1d4fc90 (diff) | |
download | qt-creator-f88ad0e9d04aac2ef66367e1f661d15644cbf8a4.tar.gz |
CMake Build: Allow building with Qt5 and Qt6
Emulate Qt5's functions/targets with Qt6 equivalents.
Change-Id: I6bfc5c8a649f0ddc5f1117bc5b2d0f41cb72c821
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/qtcreator_pch.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/shared/qtcreator_pch.h b/src/shared/qtcreator_pch.h index c17d9002a3..4988f3d939 100644 --- a/src/shared/qtcreator_pch.h +++ b/src/shared/qtcreator_pch.h @@ -50,5 +50,16 @@ #include <QSharedPointer> #include <QDebug> +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) +#include <QTextStream> +using Qt::endl; +using Qt::forcesign; +using Qt::noshowbase; +using Qt::dec; +using Qt::showbase; +using Qt::hex; +using Qt::noforcesign; +#endif + #include <stdlib.h> #endif |