#include "testhelper.hxx"
#include <QFile>
#include <QString>
#include "QtHelper.hxx"
#include "MyDataModel.hxx"
#include <stdlib.h>
Macros | |
#define | SEP ";" |
Functions | |
QString | TESTHELPER_testfilename (const char *basefilename) |
DataObject * | TESTHELPER_dummyObject (QString label) |
void | TESTHELPER_loadDataFromFile (TreeModel *dataTreeModel, const QString &filename) |
#define SEP ";" |
DataObject* TESTHELPER_dummyObject | ( | QString | label | ) |
This creates a dummy data object for the needs of the test functions. The label is the basename of the spécified pathname.
References QCHARSTAR, and DataObject::setLabel().
This test function shows how it's possible to load data from a file to populate the tree model.
References TreeModel::addData(), MyDataObject::PROPERTY_KEY_CIRCUIT, MyDataObject::PROPERTY_KEY_REPFONC, MyDataObject::PROPERTY_KEY_TYPE, QCHARSTAR, QLOG, SEP, and DataObject::setProperty().