fb55e1e71e
Becaues the database objects were created as globals, there was a possible use-after-free issue when deleting the objects on application exit. Move the initialization of the database objects into static variables inside the test constructor. As a drive-by, also add one missing test to the CMake projects. Fixes: QTBUG-85357 Change-Id: I2c8f2c5daee96bb9d1d21dae37950a2da5ffdf27 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
9 lines
219 B
CMake
9 lines
219 B
CMake
# Generated from models.pro.
|
|
|
|
add_subdirectory(qsqlrelationaltablemodel)
|
|
add_subdirectory(qsqltablemodel)
|
|
if(TARGET Qt::Widgets)
|
|
add_subdirectory(qsqlquerymodel)
|
|
add_subdirectory(qsqlrelationaldelegate)
|
|
endif()
|