56ec6a392a
The paletteChanged() and fontChanged() signals were deprecated
in Qt 6.0, but the test was still using them unconditionally.
This patch guards the usage of the deprecated signals with
the usual QT_DEPRECATED_SINCE(6, 0) check, so that the test
can be built and run with QT_DISABLE_DEPRECATED_UP_TO >= 0x060000
This commit amends 68ea9c0227
Task-number: QTBUG-104858
Change-Id: Idb2da6d91afcdb664f325f23ec625947c9a7fac0
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
49 lines
1.4 KiB
CMake
49 lines
1.4 KiB
CMake
# Copyright (C) 2022 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Generated from qguiapplication.pro.
|
|
|
|
#####################################################################
|
|
## tst_qguiapplication Test:
|
|
#####################################################################
|
|
|
|
# special case begin
|
|
if (WIN32)
|
|
set(target_version "1.2.3.4")
|
|
else()
|
|
set(target_version "1.2.3")
|
|
endif()
|
|
# special case end
|
|
|
|
# Resources:
|
|
set(tst_qguiapplication_resource_files
|
|
"icons/appicon.png"
|
|
"icons/usericon.png"
|
|
)
|
|
|
|
qt_internal_add_test(tst_qguiapplication
|
|
VERSION ${target_version} # special case
|
|
SOURCES
|
|
../../../corelib/kernel/qcoreapplication/tst_qcoreapplication.cpp ../../../corelib/kernel/qcoreapplication/tst_qcoreapplication.h # special case
|
|
tst_qguiapplication.cpp
|
|
DEFINES
|
|
QT_QGUIAPPLICATIONTEST=1
|
|
INCLUDE_DIRECTORIES
|
|
../../../corelib/kernel/qcoreapplication
|
|
LIBRARIES
|
|
Qt::CorePrivate
|
|
Qt::GuiPrivate
|
|
TESTDATA ${tst_qguiapplication_resource_files}
|
|
BUILTIN_TESTDATA
|
|
)
|
|
|
|
if (ANDROID)
|
|
set_property(TARGET tst_qguiapplication PROPERTY QT_ANDROID_VERSION_NAME ${target_version})
|
|
endif()
|
|
# special case begin
|
|
if (APPLE)
|
|
set_property(TARGET tst_qguiapplication PROPERTY MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist")
|
|
set_property(TARGET tst_qguiapplication PROPERTY PROPERTY MACOSX_BUNDLE TRUE)
|
|
endif()
|
|
# special case end
|