Skip to content

Commit

Permalink
Fix Qt ModelTest's url; make sure ModelTest is available for app tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gacarrillor committed Nov 21, 2023
1 parent 74b9bb6 commit 51d8e5d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/qt_modeltest/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Model Test
This is a simple tool from Qt for checking various errors of custom
implementations of models for item views.

http://developer.qt.nokia.com/wiki/Model_Test
https://wiki.qt.io/Model_Test
3 changes: 3 additions & 0 deletions tests/src/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ include_directories(
${CMAKE_CURRENT_BINARY_DIR}
)

IF(ENABLE_MODELTEST)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/tests/qt_modeltest)
ENDIF(ENABLE_MODELTEST)


set(TESTS
Expand Down
2 changes: 1 addition & 1 deletion tests/src/app/testqgspluginsortfileproxymodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void TestQgsPluginSortFileProxyModel::testProxyModelFilters()
mModelProxy->setFilterRole( 0 ); // Full text search

#ifdef ENABLE_MODELTEST
new ModelTest( &mModelProxy, this ); // for model validity checking
new ModelTest( mModelProxy, this ); // for model validity checking
#endif

// Add plugin items
Expand Down

0 comments on commit 51d8e5d

Please sign in to comment.