barpresenter.h
30 lines
| 618 B
| text/x-c
|
CLexer
sauimone
|
r217 | #ifndef BARPRESENTER_H | ||
#define BARPRESENTER_H | ||||
sauimone
|
r56 | |||
sauimone
|
r288 | #include "qchartglobal.h" | ||
sauimone
|
r216 | #include "barpresenterbase.h" | ||
Tero Ahola
|
r103 | #include <QGraphicsItem> | ||
sauimone
|
r56 | |||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
sauimone
|
r288 | class QBarChartSeries; | ||
sauimone
|
r256 | // Presenter for parallel bars. Grouping of bars is done on category basis. | ||
sauimone
|
r216 | class BarPresenter : public BarPresenterBase | ||
sauimone
|
r56 | { | ||
sauimone
|
r288 | Q_OBJECT | ||
sauimone
|
r56 | public: | ||
sauimone
|
r288 | explicit BarPresenter(QBarChartSeries *series, QGraphicsItem *parent = 0); | ||
sauimone
|
r78 | |||
sauimone
|
r56 | private: | ||
sauimone
|
r217 | // From BarPresenterBase | ||
sauimone
|
r56 | void layoutChanged(); // layout has changed -> need to recalculate bar sizes | ||
private: | ||||
// Data | ||||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
sauimone
|
r217 | #endif // BARPRESENTER_H | ||