#include <QApplication>#include <QMainWindow>#include <QDockWidget>#include <QTreeView>#include <Basics_Utils.hxx>#include "TreeModel.hxx"#include "MyDataModel.hxx"#include "testhelper.hxx"#include "TreeView.hxx"#include "mainwindow.hxx"Macros | |
| #define | LOOPSIZE 15 |
Functions | |
| void | showWidget (QWidget *widget) |
| void | _TEST_treemodel_addData_01 (TreeModel *dataTreeModel) |
| void | _TEST_treemodel_addData_02 (TreeModel *dataTreeModel) |
| void | _TEST_treemodel_addData_03 (TreeModel *dataTreeModel) |
| void | _TEST_treemodel_loadDataFromFile (TreeModel *dataTreeModel, const QString &filename) |
| void | TEST_treemodel () |
| void | TEST_treemodel_interactif () |
| int | main (int argc, char *argv[]) |
| #define LOOPSIZE 15 |
| void _TEST_treemodel_addData_01 | ( | TreeModel * | dataTreeModel | ) |
This function fills the specified tree with data that show different levels of path in the tree.
References TreeModel::addData(), and TESTHELPER_dummyObject().
| void _TEST_treemodel_addData_02 | ( | TreeModel * | dataTreeModel | ) |
This function fills the specified tree with a huge amount of data
References TreeModel::addData(), LOOPSIZE, and TESTHELPER_dummyObject().
| void _TEST_treemodel_addData_03 | ( | TreeModel * | dataTreeModel | ) |
This test function shows how it's possible to load data from a file to populate the tree model.
References TESTHELPER_loadDataFromFile().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
References app, and TEST_treemodel().
| void showWidget | ( | QWidget * | widget | ) |
This functions displays a main window that embeds the specified widget. A dockwidget is used to create a context similar to as the SALOME target context.
| void TEST_treemodel | ( | ) |
Main test function for the tree model demo.
References _TEST_treemodel_loadDataFromFile(), DATAFILENAME, showWidget(), and TESTHELPER_testfilename().
| void TEST_treemodel_interactif | ( | ) |