##// END OF EJS Templates
Adding metatype declarations in qml plugin for Qt5...
Adding metatype declarations in qml plugin for Qt5 Not sure why they are needed for Qt5. Definetly NOT needed for Qt4.

File last commit:

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