mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 22:55:04 -04:00
added for plugins own dir
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1850 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
97d8640f3a
commit
87344de7d4
809 changed files with 790 additions and 722 deletions
33
plugins/calendar_plugin/src/CalendarPlugin.cpp
Normal file
33
plugins/calendar_plugin/src/CalendarPlugin.cpp
Normal file
|
@ -0,0 +1,33 @@
|
|||
//#include <QApplication>
|
||||
//#include <QString>
|
||||
//#include <QPushButton>
|
||||
|
||||
#include "CalendarPlugin.h"
|
||||
#include "mainwindow.h"
|
||||
|
||||
QString
|
||||
CalendarPlugin::pluginDescription() const
|
||||
{
|
||||
QString res;
|
||||
res = "A simple plugin, based on QT calendar(richtext) example" ;
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
QString
|
||||
CalendarPlugin::pluginName() const
|
||||
{
|
||||
return "Calendar" ;
|
||||
}
|
||||
|
||||
QWidget*
|
||||
CalendarPlugin::pluginWidget(QWidget * parent )
|
||||
{
|
||||
MainWindow* window = new MainWindow(parent);
|
||||
//window->openImage(":/images/example.jpg");
|
||||
|
||||
return window;
|
||||
}
|
||||
|
||||
|
||||
Q_EXPORT_PLUGIN2(calendar_plugin, CalendarPlugin)
|
Loading…
Add table
Add a link
Reference in a new issue