Version: 9.12.0
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

◆ LOOPSIZE

#define LOOPSIZE   15

Function Documentation

◆ _TEST_treemodel_addData_01()

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

◆ _TEST_treemodel_addData_02()

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

◆ _TEST_treemodel_addData_03()

◆ _TEST_treemodel_loadDataFromFile()

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

◆ main()

int main ( int  argc,
char *  argv[] 
)

References TEST_treemodel().

◆ showWidget()

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.

◆ TEST_treemodel()

void TEST_treemodel ( )

Main test function for the tree model demo.

References _TEST_treemodel_loadDataFromFile(), DATAFILENAME, showWidget(), and TESTHELPER_testfilename().

◆ TEST_treemodel_interactif()

void TEST_treemodel_interactif ( )