diff options
author | Marc Mutz <[email protected]> | 2022-12-06 07:50:20 +0100 |
---|---|---|
committer | Marc Mutz <[email protected]> | 2022-12-09 07:21:22 +0100 |
commit | 885aba7ffdfaf410f16364f315411cf8d77da38a (patch) | |
tree | fe7cefc7e4db631d293374dcf90f5d97aa2464dc | |
parent | abaa3e61120529b656922c2272b99a674d9e1a38 (diff) |
Use qtversion.h instead of qlibraryinfo.h
... where 50b05e3e2ad969abf4b939d5db2253380e47d775 originally added
them.
While qtversion.h is included in qglobal.h, using qtversion.h directly
is a tiny step towards removing qglobal.h includes from our code-base,
so don't let this opportunity go to waste.
Change-Id: I28eaca1f4e250fc9e12e2ce6a6f94670a1d08dbe
Reviewed-by: Ivan Solovev <[email protected]>
-rw-r--r-- | qmake/generators/makefile.cpp | 2 | ||||
-rw-r--r-- | qmake/generators/unix/unixmake2.cpp | 2 | ||||
-rw-r--r-- | qmake/option.cpp | 2 | ||||
-rw-r--r-- | qmake/property.cpp | 2 | ||||
-rw-r--r-- | src/gui/accessible/linux/atspiadaptor.cpp | 2 | ||||
-rw-r--r-- | tests/auto/corelib/global/qglobal/qglobal.c | 2 | ||||
-rw-r--r-- | tests/auto/corelib/global/qglobal/tst_qglobal.cpp | 2 | ||||
-rw-r--r-- | tests/manual/highdpi/dprgadget/main.cpp | 2 | ||||
-rw-r--r-- | tests/manual/shortcuts/main.cpp | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp index 60d96f13db6..257601eaf76 100644 --- a/qmake/generators/makefile.cpp +++ b/qmake/generators/makefile.cpp @@ -16,7 +16,7 @@ #include <qdebug.h> #include <qbuffer.h> #include <qdatetime.h> -#include <qlibraryinfo.h> +#include <qtversion.h> #if defined(Q_OS_UNIX) #include <unistd.h> diff --git a/qmake/generators/unix/unixmake2.cpp b/qmake/generators/unix/unixmake2.cpp index 6bd1a8340e2..20ba642e9db 100644 --- a/qmake/generators/unix/unixmake2.cpp +++ b/qmake/generators/unix/unixmake2.cpp @@ -10,7 +10,7 @@ #include <qfile.h> #include <qdir.h> #include <qdebug.h> -#include <qlibraryinfo.h> +#include <qtversion.h> #include <time.h> #include <tuple> diff --git a/qmake/option.cpp b/qmake/option.cpp index d2092f2257c..885022b6736 100644 --- a/qmake/option.cpp +++ b/qmake/option.cpp @@ -12,7 +12,7 @@ #include <stdarg.h> #include <qmakelibraryinfo.h> -#include <qlibraryinfo.h> +#include <qtversion.h> #include <private/qlibraryinfo_p.h> QT_BEGIN_NAMESPACE diff --git a/qmake/property.cpp b/qmake/property.cpp index 664047ec01a..af4ed0e9eed 100644 --- a/qmake/property.cpp +++ b/qmake/property.cpp @@ -5,7 +5,7 @@ #include <qdir.h> #include <qsettings.h> -#include <qlibraryinfo.h> +#include <qtversion.h> #include <qmakelibraryinfo.h> #include <qstringlist.h> #include <stdio.h> diff --git a/src/gui/accessible/linux/atspiadaptor.cpp b/src/gui/accessible/linux/atspiadaptor.cpp index c931dc4d1a1..e6ada2c2403 100644 --- a/src/gui/accessible/linux/atspiadaptor.cpp +++ b/src/gui/accessible/linux/atspiadaptor.cpp @@ -11,7 +11,7 @@ #include <qclipboard.h> #include <QtCore/qloggingcategory.h> -#include <QtCore/qlibraryinfo.h> +#include <QtCore/qtversion.h> #if QT_CONFIG(accessibility) #include "socket_interface.h" diff --git a/tests/auto/corelib/global/qglobal/qglobal.c b/tests/auto/corelib/global/qglobal/qglobal.c index 64569f4de7b..abe6ec4fde0 100644 --- a/tests/auto/corelib/global/qglobal/qglobal.c +++ b/tests/auto/corelib/global/qglobal/qglobal.c @@ -2,7 +2,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #include <QtCore/qglobal.h> -#include <QtCore/qlibraryinfo.h> +#include <QtCore/qtversion.h> #ifdef Q_COMPILER_THREAD_LOCAL # include <threads.h> diff --git a/tests/auto/corelib/global/qglobal/tst_qglobal.cpp b/tests/auto/corelib/global/qglobal/tst_qglobal.cpp index 4b0b97de0b6..3f4e903a9a5 100644 --- a/tests/auto/corelib/global/qglobal/tst_qglobal.cpp +++ b/tests/auto/corelib/global/qglobal/tst_qglobal.cpp @@ -8,7 +8,7 @@ #include <QSysInfo> #include <QLatin1String> #include <QString> -#include <QLibraryInfo> +#include <QtVersion> #include <cmath> diff --git a/tests/manual/highdpi/dprgadget/main.cpp b/tests/manual/highdpi/dprgadget/main.cpp index c8d7add901f..b0a41918903 100644 --- a/tests/manual/highdpi/dprgadget/main.cpp +++ b/tests/manual/highdpi/dprgadget/main.cpp @@ -1,7 +1,7 @@ // Copyright (C) 2020 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 -#include <QtCore/qlibraryinfo.h> +#include <QtCore/qtversion.h> #include <QtGui/qpa/qplatformscreen.h> #include <QtGui/qpa/qplatformwindow.h> #include <QtGui/private/qhighdpiscaling_p.h> diff --git a/tests/manual/shortcuts/main.cpp b/tests/manual/shortcuts/main.cpp index bcdd47cab75..44be64d974f 100644 --- a/tests/manual/shortcuts/main.cpp +++ b/tests/manual/shortcuts/main.cpp @@ -8,7 +8,7 @@ #include <QLabel> #include <QPushButton> #include <QDebug> -#include <QLibraryInfo> +#include <QtVersion> class ShortcutTester : public QWidget { |