##// END OF EJS Templates
Added tests for XYModelMapper
Added tests for XYModelMapper

File last commit:

r1348:da176c513ee6
r1352:6d51f9f77c12
Show More
qvbarmodelmapper.cpp
75 lines | 1.7 KiB | text/x-c | CppLexer
#include "qvbarmodelmapper.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
/*!
\class QVBarModelMapper
\brief part of QtCommercial chart API.
\mainclass
Nothing here yet
*/
/*!
\property QVBarModelMapper::firstBarSetColumn
\brief Defines which column of the model is used as the data source for the first bar set
Default value is: -1 (invalid mapping)
*/
/*!
\property QVBarModelMapper::lastBarSetColumn
\brief Defines which column of the model is used as the data source for the last bar set
Default value is: -1 (invalid mapping)
*/
/*!
\property QVBarModelMapper::categoriesColumn
\brief Defines which column of the model is used as the data source for the x axis categories
Default value is: -1 (invalid mapping)
*/
/*!
Constructs a mapper object which is a child of \a parent.
*/
QVBarModelMapper::QVBarModelMapper(QObject *parent) :
QBarModelMapper(parent)
{
QBarModelMapper::setOrientation(Qt::Vertical);
}
int QVBarModelMapper::firstBarSetColumn() const
{
return QBarModelMapper::firstBarSetSection();
}
void QVBarModelMapper::setFirstBarSetColumn(int firstBarSetColumn)
{
return QBarModelMapper::setFirstBarSetSection(firstBarSetColumn);
}
int QVBarModelMapper::lastBarSetColumn() const
{
return QBarModelMapper::lastBarSetSection();
}
void QVBarModelMapper::setLastBarSetColumn(int lastBarSetColumn)
{
return QBarModelMapper::setLastBarSetSection(lastBarSetColumn);
}
int QVBarModelMapper::categoriesColumn() const
{
return QBarModelMapper::categoriesSection();
}
void QVBarModelMapper::setCategoriesColumn(int categoriesColumn)
{
return QBarModelMapper::setCategoriesSection(categoriesColumn);
}
#include "moc_qvbarmodelmapper.cpp"
QTCOMMERCIALCHART_END_NAMESPACE