##// END OF EJS Templates
Workaround for version check flag
Workaround for version check flag

File last commit:

r3:c3678819f924
r3:c3678819f924
Show More
declarativechart.h
37 lines | 790 B | text/x-c | CLexer
Jani Honkonen
First draft of project structure
r1 #ifndef DECLARATIVECHART_H
#define DECLARATIVECHART_H
#include <QtCore/QtGlobal>
Jani Honkonen
Workaround for version check flag
r3 #ifndef QTQUICK2
Jani Honkonen
First draft of project structure
r1 #include <QDeclarativeItem>
#else
#include <QtQuick/QQuickPaintedItem>
#endif
#include <QColor>
#include "../src/chart.h"
Jani Honkonen
Workaround for version check flag
r3 #ifndef QTQUICK2
Jani Honkonen
First draft of project structure
r1 class DeclarativeChart : public QDeclarativeItem, public Chart
#else
class DeclarativeChart : public QQuickPaintedItem, public Chart
#endif
{
Q_OBJECT
Q_PROPERTY(QColor color READ color WRITE setColor)
public:
Jani Honkonen
Workaround for version check flag
r3 #ifndef QTQUICK2
Jani Honkonen
First draft of project structure
r1 DeclarativeChart(QDeclarativeItem *parent = 0);
#else
DeclarativeChart(QQuickItem *parent = 0);
#endif
Jani Honkonen
Workaround for version check flag
r3 #ifndef QTQUICK2
Jani Honkonen
First draft of project structure
r1 void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
#else
void paint(QPainter *painter);
#endif
};
#endif // DECLARATIVECHART_H