Enable QT_NO_CONTEXTLESS_CONNECT for most of QtBase

It's clean now, keep it as such.
Enabling it for QtCore is still OK, because it just hides a function
template declared in a header.

Change-Id: I8e7dfae179732ba04241a6a3258c2d722e8259df
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Giuseppe D'Angelo 2023-07-03 23:16:18 +02:00
parent b476570932
commit 536a4299be
12 changed files with 12 additions and 0 deletions

View File

@ -25,6 +25,7 @@ qt_internal_add_module(Concurrent
qtconcurrenttask.h
qtconcurrentthreadengine.cpp qtconcurrentthreadengine.h
DEFINES
QT_NO_CONTEXTLESS_CONNECT
QT_NO_FOREACH
QT_NO_USING_NAMESPACE
LIBRARIES

View File

@ -322,6 +322,7 @@ qt_internal_add_module(Core
compat/removed_api.cpp
global/qsimd.cpp
DEFINES
QT_NO_CONTEXTLESS_CONNECT
QT_NO_FOREACH
QT_NO_USING_NAMESPACE
QT_TYPESAFE_FLAGS

View File

@ -42,6 +42,7 @@ qt_internal_add_module(DBus
qtdbusglobal.h qtdbusglobal_p.h
DEFINES
DBUS_API_SUBJECT_TO_CHANGE
QT_NO_CONTEXTLESS_CONNECT
QT_NO_FOREACH
LIBRARIES
Qt::CorePrivate

View File

@ -259,6 +259,7 @@ qt_internal_add_module(Gui
util/qtexturefilereader.cpp util/qtexturefilereader_p.h
util/qvalidator.cpp util/qvalidator.h
DEFINES
QT_NO_CONTEXTLESS_CONNECT
QT_NO_FOREACH
QT_NO_USING_NAMESPACE
QT_QPA_DEFAULT_PLATFORM_NAME="${QT_QPA_DEFAULT_PLATFORM}"

View File

@ -53,6 +53,7 @@ qt_internal_add_module(Network
ssl/qsslsocket.h
ssl/qtlsbackend.cpp ssl/qtlsbackend_p.h
DEFINES
QT_NO_CONTEXTLESS_CONNECT
QT_NO_FOREACH
QT_NO_USING_NAMESPACE
INCLUDE_DIRECTORIES

View File

@ -36,6 +36,7 @@ qt_internal_add_module(OpenGL
NO_UNITY_BUILD_SOURCES
qopengltextureblitter.cpp # qDebug()<< ambiguities
DEFINES
QT_NO_CONTEXTLESS_CONNECT
QT_NO_FOREACH
QT_NO_USING_NAMESPACE
LIBRARIES

View File

@ -10,6 +10,7 @@ qt_internal_add_module(OpenGLWidgets
qopenglwidget.cpp qopenglwidget.h
qtopenglwidgetsglobal.h
DEFINES
QT_NO_CONTEXTLESS_CONNECT
QT_NO_FOREACH
QT_NO_USING_NAMESPACE
LIBRARIES

View File

@ -20,6 +20,7 @@ qt_internal_add_module(PrintSupport
kernel/qprinterinfo.cpp kernel/qprinterinfo.h kernel/qprinterinfo_p.h
kernel/qtprintsupportglobal.h kernel/qtprintsupportglobal_p.h
DEFINES
QT_NO_CONTEXTLESS_CONNECT
QT_NO_FOREACH
QT_NO_USING_NAMESPACE
INCLUDE_DIRECTORIES

View File

@ -23,6 +23,7 @@ qt_internal_add_module(Sql
kernel/qtsqlglobal.h kernel/qtsqlglobal_p.h
DEFINES
QT_NO_CAST_FROM_ASCII
QT_NO_CONTEXTLESS_CONNECT
QT_NO_FOREACH
QT_NO_USING_NAMESPACE
LIBRARIES

View File

@ -59,6 +59,7 @@ qt_internal_add_module(Test
DEFINES
QT_NO_CAST_FROM_ASCII
QT_NO_CAST_TO_ASCII
QT_NO_CONTEXTLESS_CONNECT
QT_NO_DATASTREAM
QT_NO_FOREACH
# Ensure uniform location info between release and debug builds

View File

@ -51,6 +51,7 @@ qt_internal_add_module(Widgets
widgets/qframe.cpp widgets/qframe.h widgets/qframe_p.h
widgets/qwidgetanimator.cpp widgets/qwidgetanimator_p.h
DEFINES
QT_NO_CONTEXTLESS_CONNECT
QT_NO_USING_NAMESPACE
INCLUDE_DIRECTORIES
dialogs

View File

@ -11,6 +11,7 @@ qt_internal_add_module(Xml
dom/qdomhelpers.cpp dom/qdomhelpers_p.h
qtxmlglobal.h
DEFINES
QT_NO_CONTEXTLESS_CONNECT
QT_NO_FOREACH
QT_NO_USING_NAMESPACE
LIBRARIES