Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
guitester.cxx File Reference
#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[])
 

Macro Definition Documentation

#define LOOPSIZE   15

Function Documentation

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_loadDataFromFile ( TreeModel dataTreeModel,
const QString &  filename 
)

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 ( )