##// END OF EJS Templates
scatterchart: get rid of a warning...
scatterchart: get rid of a warning This was the warning: scatterchart/scatterchartitem_p.h:68: Warning: Class ScatterChartItem implements the interface QGraphicsItem but does not list it in Q_INTERFACES. qobject_cast to QGraphicsItem will not work!

File last commit:

r1216:27179fba36bb
r1232:8d7d8cb763e0
Show More
qchartsplugin.cpp
58 lines | 1015 B | text/x-c | CppLexer
#include "qchartsplugin.h"
#include "qchartview.h"
#include <QtPlugin>
QTCOMMERCIALCHART_USE_NAMESPACE
QChartsPlugin::QChartsPlugin(QObject *parent) :
QObject(parent)
{
// TODO Auto-generated constructor stub
}
QChartsPlugin::~QChartsPlugin()
{
// TODO Auto-generated destructor stub
}
QString QChartsPlugin::name() const
{
return "QChartView";
}
QString QChartsPlugin::includeFile() const
{
return "<qchartview.h>";
}
QString QChartsPlugin::group() const
{
return tr("QCharts Widgets");
}
QIcon QChartsPlugin::icon() const
{
return QIcon(":/images/qcharts.png");
}
QString QChartsPlugin::toolTip() const
{
return tr("An qcharts view widget");
}
QString QChartsPlugin::whatsThis() const
{
return tr("This widget is presents QChartView widget");
}
bool QChartsPlugin::isContainer() const
{
return false;
}
QWidget* QChartsPlugin::createWidget(QWidget *parent)
{
return new QChartView(new QChart(), parent);
}
Q_EXPORT_PLUGIN2(qtcommercialchart, QChartsPlugin)