Move proxymodeltestapp to tests, it's an interactive GUI test program

wilder
David Faure 10 years ago
parent 85c7b5781d
commit c123892e29
  1. 1
      CMakeLists.txt
  2. 1
      autotests/CMakeLists.txt
  3. 4
      tests/CMakeLists.txt
  4. 0
      tests/proxymodeltestapp/CMakeLists.txt
  5. 0
      tests/proxymodeltestapp/breadcrumbdirectionwidget.cpp
  6. 0
      tests/proxymodeltestapp/breadcrumbdirectionwidget.h
  7. 0
      tests/proxymodeltestapp/breadcrumbnavigationwidget.cpp
  8. 0
      tests/proxymodeltestapp/breadcrumbnavigationwidget.h
  9. 0
      tests/proxymodeltestapp/breadcrumbswidget.cpp
  10. 0
      tests/proxymodeltestapp/breadcrumbswidget.h
  11. 0
      tests/proxymodeltestapp/checkablewidget.cpp
  12. 0
      tests/proxymodeltestapp/checkablewidget.h
  13. 0
      tests/proxymodeltestapp/descendantpmwidget.cpp
  14. 0
      tests/proxymodeltestapp/descendantpmwidget.h
  15. 0
      tests/proxymodeltestapp/kidentityproxymodelwidget.cpp
  16. 0
      tests/proxymodeltestapp/kidentityproxymodelwidget.h
  17. 0
      tests/proxymodeltestapp/kreparentingproxymodel.cpp
  18. 0
      tests/proxymodeltestapp/kreparentingproxymodel.h
  19. 0
      tests/proxymodeltestapp/lessthanwidget.cpp
  20. 0
      tests/proxymodeltestapp/lessthanwidget.h
  21. 0
      tests/proxymodeltestapp/main.cpp
  22. 0
      tests/proxymodeltestapp/mainwindow.cpp
  23. 0
      tests/proxymodeltestapp/mainwindow.h
  24. 0
      tests/proxymodeltestapp/matchcheckingwidget.cpp
  25. 0
      tests/proxymodeltestapp/matchcheckingwidget.h
  26. 6
      tests/proxymodeltestapp/modelcommanderwidget.cpp
  27. 0
      tests/proxymodeltestapp/modelcommanderwidget.h
  28. 0
      tests/proxymodeltestapp/proxyitemselectionwidget.cpp
  29. 0
      tests/proxymodeltestapp/proxyitemselectionwidget.h
  30. 0
      tests/proxymodeltestapp/proxymodeltestwidget.cpp
  31. 0
      tests/proxymodeltestapp/proxymodeltestwidget.h
  32. 0
      tests/proxymodeltestapp/recursivefilterpmwidget.cpp
  33. 0
      tests/proxymodeltestapp/recursivefilterpmwidget.h
  34. 0
      tests/proxymodeltestapp/reparenting1.png
  35. 0
      tests/proxymodeltestapp/reparenting2.png
  36. 0
      tests/proxymodeltestapp/reparenting3.png
  37. 0
      tests/proxymodeltestapp/reparentingpmwidget.cpp
  38. 0
      tests/proxymodeltestapp/reparentingpmwidget.h
  39. 0
      tests/proxymodeltestapp/scriptablereparentingwidget.cpp
  40. 0
      tests/proxymodeltestapp/scriptablereparentingwidget.h
  41. 0
      tests/proxymodeltestapp/selection.qml
  42. 0
      tests/proxymodeltestapp/selectioninqmlwidget.cpp
  43. 0
      tests/proxymodeltestapp/selectioninqmlwidget.h
  44. 0
      tests/proxymodeltestapp/selectionpmwidget.cpp
  45. 0
      tests/proxymodeltestapp/selectionpmwidget.h
  46. 0
      tests/proxymodeltestapp/statesaverwidget.cpp
  47. 0
      tests/proxymodeltestapp/statesaverwidget.h

@ -34,6 +34,7 @@ ecm_setup_version(${KF5_VERSION} VARIABLE_PREFIX KITEMMODELS
add_subdirectory(src)
if (BUILD_TESTING)
add_subdirectory(autotests)
add_subdirectory(tests)
endif()

@ -32,4 +32,3 @@ ecm_add_test(kselectionproxymodel_smoketest.cpp ${proxyModelSmokeTestSources}
LINK_LIBRARIES KF5::ItemModels Qt5::Test Qt5::Widgets proxymodeltestsuite
)
add_subdirectory(proxymodeltestapp)

@ -0,0 +1,4 @@
remove_definitions(-DQT_NO_CAST_TO_ASCII)
remove_definitions(-DQT_NO_CAST_FROM_ASCII)
add_subdirectory(proxymodeltestapp)

@ -58,7 +58,7 @@ void ModelCommanderWidget::init()
m_treeWidget->addTopLevelItem(testFunctionItem);
QStringList testData;
QMetaObject::invokeMethod(m_modelCommander, QByteArray("execute_" + testFunctionItem->text(0).toLatin1()),
QMetaObject::invokeMethod(m_modelCommander, QByteArray("execute_" + testFunctionItem->text(0).toLatin1()).constData(),
Q_RETURN_ARG(QStringList, testData),
Q_ARG(QString, QString()));
@ -99,7 +99,7 @@ void ModelCommanderWidget::initTest(QTreeWidgetItem *item)
return; // m_dynamicTreeModel->clear();
}
m_dynamicTreeModel->clear();
bool success = QMetaObject::invokeMethod(m_modelCommander, QByteArray("init_" + item->parent()->text(0).toLatin1()),
bool success = QMetaObject::invokeMethod(m_modelCommander, QByteArray("init_" + item->parent()->text(0).toLatin1()).constData(),
Q_ARG(QString, item->text(0)));
Q_ASSERT(success);
}
@ -110,7 +110,7 @@ void ModelCommanderWidget::executeTest(QTreeWidgetItem *item)
return;
}
bool success = QMetaObject::invokeMethod(m_modelCommander, QByteArray("execute_" + item->parent()->text(0).toLatin1()),
bool success = QMetaObject::invokeMethod(m_modelCommander, QByteArray("execute_" + item->parent()->text(0).toLatin1()).constData(),
Q_ARG(QString, item->text(0)));
Q_ASSERT(success);
}

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Loading…
Cancel
Save