##// END OF EJS Templates
renamed bar.h to bar_p.h
renamed bar.h to bar_p.h

File last commit:

r3:c3678819f924
r118:4d1d9ed7ae03
Show More
declarativechart.cpp
27 lines | 607 B | text/x-c | CppLexer
#include "declarativechart.h"
#include <QPainter>
#ifndef QTQUICK2
DeclarativeChart::DeclarativeChart(QDeclarativeItem *parent)
: QDeclarativeItem(parent)
{
// need to disable this flag to draw inside a QDeclarativeItem
setFlag(QGraphicsItem::ItemHasNoContents, false);
}
#else
DeclarativeChart::DeclarativeChart(QQuickItem *parent)
: QQuickPaintedItem(parent)
{
}
#endif
#ifndef QTQUICK2
void DeclarativeChart::paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *)
#else
void DeclarativeChart::paint(QPainter *painter)
#endif
{
drawChart(painter, boundingRect());
}