##// END OF EJS Templates
Refactors animation handling for xyseries
Refactors animation handling for xyseries

File last commit:

r1216:27179fba36bb
r1217:b0870dfe6522
Show More
qchartsplugin.cpp
58 lines | 1015 B | text/x-c | CppLexer
Michal Klocek
Adds designer plugin stub
r1201 #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
{
Michal Klocek
Fixes plugin naming mismatch
r1215 return "QChartView";
Michal Klocek
Adds designer plugin stub
r1201 }
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
{
Michal Klocek
Fix designer plugin desc
r1216 return tr("An qcharts view widget");
Michal Klocek
Adds designer plugin stub
r1201 }
QString QChartsPlugin::whatsThis() const
{
Michal Klocek
Fix designer plugin desc
r1216 return tr("This widget is presents QChartView widget");
Michal Klocek
Adds designer plugin stub
r1201 }
bool QChartsPlugin::isContainer() const
{
return false;
}
QWidget* QChartsPlugin::createWidget(QWidget *parent)
{
return new QChartView(new QChart(), parent);
}
Q_EXPORT_PLUGIN2(qtcommercialchart, QChartsPlugin)