Use qtversion.h instead of qlibraryinfo.h
... where 50b05e3e2a
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 <ivan.solovev@qt.io>
This commit is contained in:
parent
abaa3e6112
commit
885aba7ffd
@ -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>
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include <qfile.h>
|
||||
#include <qdir.h>
|
||||
#include <qdebug.h>
|
||||
#include <qlibraryinfo.h>
|
||||
#include <qtversion.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <tuple>
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include <stdarg.h>
|
||||
|
||||
#include <qmakelibraryinfo.h>
|
||||
#include <qlibraryinfo.h>
|
||||
#include <qtversion.h>
|
||||
#include <private/qlibraryinfo_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
@ -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>
|
||||
|
@ -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"
|
||||
|
@ -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>
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include <QSysInfo>
|
||||
#include <QLatin1String>
|
||||
#include <QString>
|
||||
#include <QLibraryInfo>
|
||||
#include <QtVersion>
|
||||
|
||||
#include <cmath>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include <QLabel>
|
||||
#include <QPushButton>
|
||||
#include <QDebug>
|
||||
#include <QLibraryInfo>
|
||||
#include <QtVersion>
|
||||
|
||||
class ShortcutTester : public QWidget
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user