Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "qtcagraphplugin.hpp"
- #include "qtcagraph.hpp"
- #include <qwt/qwt_plot.h>
- #include <qwt/qwt_plot_curve.h>
- #include <qwt/qwt_plot_zoomer.h>
- #include <qwt/qwt_plot_magnifier.h>
- #include <QtPlugin>
- QtCAgraphPlugin::QtCAgraphPlugin(QObject* parent) : QObject(parent) {
- }
- bool QtCAgraphPlugin::isContainer() const {
- return false;
- }
- QIcon QtCAgraphPlugin::icon() const {
- return QIcon();
- }
- QString QtCAgraphPlugin::domXml() const {
- return "<ui language=\"c++\">\n"
- " <widget class=\"QtCAgraph\" name=\"qtCAgraph\">\n"
- " <property name=\"geometry\">\n"
- " <rect>\n"
- " <x>0</x>\n"
- " <y>0</y>\n"
- " <width>500</width>\n"
- " <height>300</height>\n"
- " </rect>\n"
- " </property>\n"
- " <property name=\"toolTip\" >\n"
- " <string>Graph.</string>\n"
- " </property>\n"
- " <property name=\"whatsThis\" >\n"
- " <string>Graph.</string>\n"
- " </property>\n"
- " </widget>\n"
- "</ui>\n";
- }
- QString QtCAgraphPlugin::group() const {
- return "Display Widgets [Example]";
- }
- QString QtCAgraphPlugin::includeFile() const {
- return "qtcagraph.hpp";
- }
- QString QtCAgraphPlugin::name() const {
- return "QtCAgraph";
- }
- QString QtCAgraphPlugin::toolTip() const {
- return "QtCA Graph";
- }
- QString QtCAgraphPlugin::whatsThis() const {
- return "QtCA Graph";
- }
- QWidget* QtCAgraphPlugin::createWidget(QWidget* parent) {
- return new QtCAgraph(parent);
- }
- Q_EXPORT_PLUGIN2(qtcagraphplugin, QtCAgraphPlugin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement