update web engine config
Some checks failed
buildbot/DocsGenerator Build finished.
buildbot/AndroidBuilder_v8Qt6 Build finished.
buildbot/LinuxCMakeBuilderQt6 Build finished.

This commit is contained in:
Andrei Yankovich 2024-12-21 22:34:42 +01:00
parent 3f2b3cc2bf
commit c53f981a56
4 changed files with 10 additions and 8 deletions

View File

@ -76,6 +76,9 @@ else()
endif()
if (CQT_DEPLOYER_TESTS)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS WebEngineQuick)
add_subdirectory(testcases)
add_subdirectory(tests)
else()

View File

@ -19,10 +19,8 @@ if (NOT WIN32)
add_subdirectory(QMLFileDialog)
add_subdirectory(virtualkeyboard)
# this tests is not actual for the qt 6.8 and later. Use WebView.
if (QT_VERSION_MAJOR LESS_EQUAL 6 AND QT_VERSION_MINOR LESS_EQUAL 7)
if (Qt${QT_VERSION_MAJOR}WebEngineQuick_FOUND)
add_subdirectory(quicknanobrowser)
add_subdirectory(webui)
endif()
endif()

View File

@ -47,6 +47,10 @@ set(PUBLIC_INCUDE_DIR ${PUBLIC_INCUDE_DIR} "${CMAKE_CURRENT_SOURCE_DIR}/modules"
add_definitions(-DQT_BASE_DIR="${QT_QT_ROOT}/")
add_definitions(-DTEST_BIN_DIR="${CMAKE_CURRENT_LIST_DIR}/../testcases/bin/")
if (Qt${QT_VERSION_MAJOR}WebEngineQuick_FOUND)
add_definitions(-DUSE_WEBENGINE)
endif()
add_executable(${CURRENT_PROJECT} ${SOURCE_CPP})
target_link_libraries(${CURRENT_PROJECT} PRIVATE Qt${QT_VERSION_MAJOR}::Test Deploy)

View File

@ -8,7 +8,7 @@
#include "webenginetest.h"
#if QT_VERSION < QT_VERSION_CHECK(6, 8, 0)
#ifdef USE_WEBENGINE
#include "modules.h"
#endif
@ -20,8 +20,7 @@
void WebEngineTest::test() {
#ifdef Q_OS_UNIX
#if QT_VERSION < QT_VERSION_CHECK(6, 8, 0)
#ifdef USE_WEBENGINE
TestUtils utils;
QString bin = TestBinDir + "quicknanobrowser";
@ -41,7 +40,5 @@ void WebEngineTest::test() {
runTestParams({"-bin", bin, "clear" ,
"-qmake", qmake}, &comapareTree);
#endif
#endif
}