diff --git a/plugins/declarative/declarative.pro b/plugins/declarative/declarative.pro index 225e2fd..7ff1792 100644 --- a/plugins/declarative/declarative.pro +++ b/plugins/declarative/declarative.pro @@ -5,8 +5,6 @@ QT += declarative error( "Couldn't find the plugins.pri file!" ) } -DESTDIR = $$CHART_BUILD_PLUGIN_DIR - contains(QT_MAJOR_VERSION, 5) { # TODO: QtQuick2 not supported by the implementation currently DEFINES += QTQUICK2 diff --git a/plugins/designer/designer.pro b/plugins/designer/designer.pro new file mode 100644 index 0000000..972d0e5 --- /dev/null +++ b/plugins/designer/designer.pro @@ -0,0 +1,13 @@ +TARGET=qtcommercialchartdesigner + +!include( ../plugins.pri ) { + error( "Couldn't find the plugins.pri file!" ) +} + +CONFIG += designer +HEADERS = qchartsplugin.h +SOURCES = qchartsplugin.cpp +RESOURCES = qchartsplugin.qrc + +target.path = $$[QT_INSTALL_PLUGINS]/designer +INSTALLS += target \ No newline at end of file diff --git a/plugins/designer/qcharts.png b/plugins/designer/qcharts.png new file mode 100644 index 0000000000000000000000000000000000000000..442f5c547ddd8e8e657dac9d977d3f48c886739a GIT binary patch literal 6738 zc$@)J8m;AtP)Px#32;bRa{vGf6951U69E94oEQKA00(qQO+^RX1rY`%BCvBL&j0`!S``t5t+~s#) zOY#B|Ep^^iN!@zy*S~jv=iGD7_k7Q}w_z{_V=x9|Fa~2V24gS=V=x9|F#baiIT0pt z+V5={Di4+;)R=qvs@Za&kRS3mh7FPdum|N@ z1gmbc_f0oj-x?_77>%u$jBdA<-vE9StC@&khJ|d@Aay?#_5Y|;GgSAo96sA;fZLOw z*rUpw2r5p4)4+a!vMlNKx)eosdEtxt;?}t^iql#5)Db+r0M81s30b7>zir&73rQ$1mh0dB)NaG#rFQt$# z0g6JtK_uUjIVB*df{3C@{2OK$CKz<}VwLtBTGW*?h$>S>QPjGBjmW<$GOyN_MW?*A zShTk+9PHe}EwoQMg{*&5zBSM5&lnLvFzcXpO5QIcRmu`JZOS;~v^wjCGmH_I+LmtD z(r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LfMibPQqbf(#|D?o#w=**OReQcs3z)y+r z2H-*98p8SeZUL3aeKRj$JKb#QQJ%?A{URV{98+*6!fSB6-3C==5xzCkY~6jrvAv0) zFIVNido%us!k^C^<)H_I7X>xHud#4<`>xSl!*_~sP?dEEcP!rBULJ^kFa~2V24gS= oV=x9|Fa~2V24gS=;|Syb13L_r!SG0}WB>pF07*qoM6N<$f@csJ+W-In literal 0 Hc$@ + +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 "QCharts"; +} + +QString QChartsPlugin::includeFile() const +{ + return ""; +} + +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 widget"); +} + +QString QChartsPlugin::whatsThis() const +{ + return tr("This widget is presents QCharts view widget"); +} + +bool QChartsPlugin::isContainer() const +{ + return false; +} + +QWidget* QChartsPlugin::createWidget(QWidget *parent) +{ + return new QChartView(new QChart(), parent); +} + +Q_EXPORT_PLUGIN2(qtcommercialchart, QChartsPlugin) diff --git a/plugins/designer/qchartsplugin.h b/plugins/designer/qchartsplugin.h new file mode 100644 index 0000000..af30b2f --- /dev/null +++ b/plugins/designer/qchartsplugin.h @@ -0,0 +1,24 @@ +#ifndef QCHARTSPLUGIN_H_ +#define QCHARTSPLUGIN_H_ + +#include + +class QChartsPlugin: public QObject,public QDesignerCustomWidgetInterface +{ + Q_OBJECT + Q_INTERFACES(QDesignerCustomWidgetInterface) +public: + QChartsPlugin(QObject *parent = 0); + ~QChartsPlugin(); + + QString name() const; + QString includeFile() const; + QString group() const; + QIcon icon() const; + QString toolTip() const; + QString whatsThis() const; + bool isContainer() const; + QWidget *createWidget(QWidget *parent); +}; + +#endif /* QCHARTSPLUGIN_H_ */ diff --git a/plugins/designer/qchartsplugin.qrc b/plugins/designer/qchartsplugin.qrc new file mode 100644 index 0000000..98cd3bf --- /dev/null +++ b/plugins/designer/qchartsplugin.qrc @@ -0,0 +1,6 @@ + + + + qcharts.png + + diff --git a/plugins/plugins.pri b/plugins/plugins.pri index ffacde2..25ce2d7 100644 --- a/plugins/plugins.pri +++ b/plugins/plugins.pri @@ -6,7 +6,7 @@ TEMPLATE = lib CONFIG+= plugin -DESTDIR = $$CHART_BUILD_BIN_DIR +DESTDIR = $$CHART_BUILD_PLUGIN_DIR OBJECTS_DIR = $$CHART_BUILD_DIR/plugins/$$TARGET MOC_DIR = $$CHART_BUILD_DIR/plugins/$$TARGET UI_DIR = $$CHART_BUILD_DIR/plugins/$$TARGET diff --git a/plugins/plugins.pro b/plugins/plugins.pro index 082ede8..cc35878 100644 --- a/plugins/plugins.pro +++ b/plugins/plugins.pro @@ -4,4 +4,5 @@ TEMPLATE = subdirs SUBDIRS += \ - declarative \ No newline at end of file + declarative \ + designer \ No newline at end of file