mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 02:44:20 -05:00
87344de7d4
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1850 b45a01b8-16f6-495d-af2f-9b41ad6348cc
34 lines
540 B
C++
34 lines
540 B
C++
//#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 )
|
|
{
|
|
MainWindow* window = new MainWindow();
|
|
//window->openImage(":/images/example.jpg");
|
|
|
|
return window;
|
|
}
|
|
|
|
|
|
Q_EXPORT_PLUGIN2(qdiagram_plugin, DiagramPlugin)
|