24 #ifndef _vtkQtChartTitle_h
25 #define _vtkQtChartTitle_h
28 #include "vtkQtChartExport.h"
50 vtkQtChartTitle(Qt::Orientation orient=Qt::Horizontal, QWidget *parent=0);
62 void setOrientation(Qt::Orientation orient);
73 void setText(
const QString &text);
90 virtual QSize
sizeHint()
const {
return this->Bounds;}
95 void drawTitle(QPainter &painter);
99 void orientationChanged();
107 virtual bool event(QEvent *e);
112 virtual void paintEvent(QPaintEvent *e);
116 void calculateSize();
121 Qt::Orientation Orient;
The vtkQtChartTitle class is used to draw a chart title.
Qt::Orientation getOrientation() const
Gets the orientation of the chart title.
virtual ~vtkQtChartTitle()
QString getText() const
Gets the chart title text.
void setTextAlignment(int flags)
Sets the text alignment flags for the title.
virtual QSize sizeHint() const
Gets the preferred size of the chart title.
int getTextAlignment() const
Gets the text alignment flags for the title.