##// END OF EJS Templates
Adaptive layout to legend. Tries to fit all items inside given maximum size
Adaptive layout to legend. Tries to fit all items inside given maximum size

File last commit:

r473:8959911f7807
r626:b05202e4f2ef
Show More
barvalue_p.h
50 lines | 953 B | text/x-c | CLexer
sauimone
Floating values to bar charts
r263 #ifndef BARVALUE_P_H
#define BARVALUE_P_H
#include "qchartglobal.h"
sauimone
floating values working now. bounding rect bug fixed
r273 #include <QGraphicsObject>
sauimone
Floating values to bar charts
r263 #include <QPen>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
sauimone
toggling of floating values. still bit buggy
r267 class QBarSet;
sauimone
Floating values to bar charts
r263
// Visual class for floating bar values
// By default these are not visible.
sauimone
floating values working now. bounding rect bug fixed
r273 class BarValue : public QGraphicsObject
sauimone
Floating values to bar charts
r263 {
sauimone
floating values working now. bounding rect bug fixed
r273 Q_OBJECT
sauimone
Floating values to bar charts
r263 public:
sauimone
toggling of floating values. still bit buggy
r267 BarValue(QBarSet &set, QGraphicsItem *parent = 0);
sauimone
Floating values to bar charts
r263
void setValueString(QString str);
QString valueString();
sauimone
Fixed layout for barcharts
r473 void setPen(const QPen pen);
QPen pen() const;
sauimone
Floating values to bar charts
r263
void resize(qreal w, qreal h);
void setPos(qreal x, qreal y);
// From QGraphicsItem
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
QRectF boundingRect() const;
sauimone
floating values working now. bounding rect bug fixed
r273 public Q_SLOTS:
void toggleVisible();
sauimone
Floating values to bar charts
r263 private:
sauimone
toggling of floating values. still bit buggy
r267 QBarSet& mBarSet;
sauimone
Floating values to bar charts
r263 QPen mPen;
QString mValueString;
qreal mXpos;
qreal mYpos;
qreal mWidth;
qreal mHeight;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // BARVALUE_P_H