##// END OF EJS Templates
Replaced 'Bar' with 'BarSet' in BarModelMapper functions and member variables
Replaced 'Bar' with 'BarSet' in BarModelMapper functions and member variables

File last commit:

r1216:27179fba36bb
r1312:0b557819e7a2
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)