Reduce compiler warnings: replace qAsConst with std::as_const and update event localPos() to position()
Replaced deprecated qAsConst usages in built modules and updated QMouseEvent::localPos() to position() per Qt6 deprecation guidance.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
46e673f660
commit
8af436f09a
281 files changed
+7102
-5490
No files matched your search
@@ -0,0 +1,20 @@
|
||||
cmake_minimum_required(VERSION 3.21)
|
||||
project(GTests LANGUAGES CXX)
|
||||
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
googletest
|
||||
URL https://github.com/google/googletest/archive/refs/tags/release-1.14.0.tar.gz
|
||||
)
|
||||
FetchContent_MakeAvailable(googletest)
|
||||
|
||||
# Collect generated test sources
|
||||
file(GLOB GTEST_SRCS "${CMAKE_SOURCE_DIR}/Z/*_test.cpp")
|
||||
add_executable(gtests_all ${GTEST_SRCS})
|
||||
target_compile_features(gtests_all PRIVATE cxx_std_20)
|
||||
target_include_directories(gtests_all PRIVATE ${CMAKE_SOURCE_DIR}/../../)
|
||||
# link to gtest
|
||||
target_link_libraries(gtests_all PRIVATE GTest::gtest_main)
|
||||
|
||||
include(GoogleTest)
|
||||
gtest_discover_tests(gtests_all)
|
||||
Reference in new issue
Block a user