2009-02-02 09:24:43 -05:00
|
|
|
//#include <QApplication>
|
|
|
|
//#include <QString>
|
|
|
|
//#include <QPushButton>
|
|
|
|
|
|
|
|
#include "DiagramPlugin.h"
|
|
|
|
#include "mainwindow.h"
|
|
|
|
|
|
|
|
QString
|
|
|
|
DiagramPlugin::pluginDescription() const
|
|
|
|
{
|
|
|
|
QString res;
|
|
|
|
res = "A qdiagram plugin" ;
|
|
|
|
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString
|
|
|
|
DiagramPlugin::pluginName() const
|
|
|
|
{
|
|
|
|
return "QDiagram" ;
|
|
|
|
}
|
|
|
|
|
|
|
|
QWidget*
|
|
|
|
DiagramPlugin::pluginWidget(QWidget * parent )
|
|
|
|
{
|
2009-02-02 11:37:39 -05:00
|
|
|
MainWindow* window = new MainWindow();
|
2009-02-02 09:24:43 -05:00
|
|
|
//window->openImage(":/images/example.jpg");
|
|
|
|
|
|
|
|
return window;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Q_EXPORT_PLUGIN2(qdiagram_plugin, DiagramPlugin)
|