##// END OF EJS Templates
qaxis doc update
qaxis doc update

File last commit:

r1312:0b557819e7a2
r1350:dd78105a8d95
Show More
qbarmodelmapper_p.h
63 lines | 1.6 KiB | text/x-c | CLexer
/ src / barchart / qbarmodelmapper_p.h
Marek Rosa
BarModel mapper refactored.
r1293 #ifndef QBARMODELMAPPER_P_H
#define QBARMODELMAPPER_P_H
#include "qchartglobal.h"
#include <QObject>
#include "qbarmodelmapper.h"
class QModelIndex;
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Marek Rosa
BarModelMapper: implemented model updated slots. Some more work needed with categories
r1295 class QBarSet;
Marek Rosa
BarModel mapper refactored.
r1293 class QBarModelMapperPrivate : public QObject
{
Q_OBJECT
public:
explicit QBarModelMapperPrivate(QBarModelMapper *q);
public Q_SLOTS:
// for the model
void modelUpdated(QModelIndex topLeft, QModelIndex bottomRight);
void modelRowsAdded(QModelIndex parent, int start, int end);
void modelRowsRemoved(QModelIndex parent, int start, int end);
void modelColumnsAdded(QModelIndex parent, int start, int end);
void modelColumnsRemoved(QModelIndex parent, int start, int end);
// // for the series
// void handlePointAdded(int pointPos);
// void handlePointRemoved(int pointPos);
// void handlePointReplaced(int pointPos);
void initializeBarFromModel();
private:
Marek Rosa
BarModelMapper: implemented model updated slots. Some more work needed with categories
r1295 QBarSet* barSet(QModelIndex index);
Marek Rosa
BarModel mapper refactored.
r1293 QModelIndex barModelIndex(int barSection, int posInBar);
QModelIndex categoriesModelIndex(int posInCategories);
void insertData(int start, int end);
void removeData(int start, int end);
void blockModelSignals(bool block = true);
void blockSeriesSignals(bool block = true);
private:
QBarSeries *m_series;
QAbstractItemModel *m_model;
int m_first;
int m_count;
Qt::Orientation m_orientation;
Marek Rosa
Replaced 'Bar' with 'BarSet' in BarModelMapper functions and member variables
r1312 int m_firstBarSetSection;
int m_lastBarSetSection;
Marek Rosa
BarModel mapper refactored.
r1293 int m_categoriesSection;
bool m_seriesSignalsBlock;
bool m_modelSignalsBlock;
private:
QBarModelMapper *q_ptr;
Q_DECLARE_PUBLIC(QBarModelMapper)
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QBARMODELMAPPER_P_H