mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
87344de7d4
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1850 b45a01b8-16f6-495d-af2f-9b41ad6348cc
34 lines
561 B
C++
34 lines
561 B
C++
//#include <QApplication>
|
|
//#include <QString>
|
|
//#include <QPushButton>
|
|
|
|
#include "PuzzlePlugin.h"
|
|
#include "mainwindow.h"
|
|
|
|
QString
|
|
PuzzlePlugin::pluginDescription() const
|
|
{
|
|
QString res;
|
|
res = "A simple plugin, based on QT puzzle example" ;
|
|
|
|
return res;
|
|
}
|
|
|
|
QString
|
|
PuzzlePlugin::pluginName() const
|
|
{
|
|
return "Puzzle" ;
|
|
}
|
|
|
|
QWidget*
|
|
PuzzlePlugin::pluginWidget(QWidget * parent )
|
|
{
|
|
MainWindow* window = new MainWindow(parent);
|
|
window->openImage(":/images/example.jpg");
|
|
|
|
return window;
|
|
}
|
|
|
|
|
|
Q_EXPORT_PLUGIN2(puzzle_plugin, PuzzlePlugin)
|