##// END OF EJS Templates
Bar model mapper to Qml custom model demo
Bar model mapper to Qml custom model demo

File last commit:

r1216:27179fba36bb
r1313:a90564adf9b7
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)