qbarset_p.h
41 lines
| 817 B
| text/x-c
|
CLexer
Michal Klocek
|
r938 | #ifndef QBARSET_P_H | ||
#define QBARSET_P_H | ||||
#include "qbarset.h" | ||||
Michal Klocek
|
r996 | #include <QMap> | ||
Michal Klocek
|
r938 | |||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class QBarSetPrivate : public QObject | ||||
{ | ||||
Q_OBJECT | ||||
public: | ||||
sauimone
|
r993 | QBarSetPrivate(const QString name, QBarSet *parent); | ||
Michal Klocek
|
r938 | ~QBarSetPrivate(); | ||
Q_SIGNALS: | ||||
sauimone
|
r1008 | void clicked(QString category); | ||
sauimone
|
r1017 | void selected(); | ||
sauimone
|
r1008 | void restructuredBars(); | ||
void updatedBars(); | ||||
Michal Klocek
|
r938 | void labelsVisibleChanged(bool visible); | ||
public: | ||||
QBarSet * const q_ptr; | ||||
QString m_name; | ||||
QList<qreal> m_values; // TODO: replace with map (category, value) | ||||
QMap<QString, qreal> m_mappedValues; | ||||
QPen m_pen; | ||||
QBrush m_brush; | ||||
QPen m_labelPen; | ||||
QBrush m_labelBrush; | ||||
QFont m_labelFont; | ||||
bool m_labelsVisible; | ||||
friend class QBarSet; | ||||
}; | ||||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif // QBARSETPRIVATE_P_H | ||||