widget.h
32 lines
| 489 B
| text/x-c
|
CLexer
Marek Rosa
|
r2150 | #ifndef WIDGET_H | ||
#define WIDGET_H | ||||
#include <QWidget> | ||||
#include <QChart> | ||||
class QGraphicsScene; | ||||
class QGraphicsView; | ||||
Marek Rosa
|
r2255 | class Callout; | ||
Marek Rosa
|
r2150 | |||
QTCOMMERCIALCHART_USE_NAMESPACE | ||||
class Widget : public QWidget | ||||
{ | ||||
Q_OBJECT | ||||
public: | ||||
Widget(QWidget *parent = 0); | ||||
~Widget(); | ||||
public slots: | ||||
Marek Rosa
|
r2255 | void keepCallout(); | ||
void tooltip(QPointF point, bool state); | ||||
Marek Rosa
|
r2150 | |||
private: | ||||
QGraphicsScene *m_scene; | ||||
QChart *m_chart; | ||||
QGraphicsView *m_view; | ||||
Marek Rosa
|
r2255 | Callout *m_tooltip; | ||
Marek Rosa
|
r2150 | }; | ||
#endif // WIDGET_H | ||||