mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 06:35:08 -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
49
plugins/smplayer_plugin/SMPlayerPlugin.cpp
Normal file
49
plugins/smplayer_plugin/SMPlayerPlugin.cpp
Normal file
|
@ -0,0 +1,49 @@
|
|||
//#include <QApplication>
|
||||
//#include <QString>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
#include "SMPlayerPlugin.h"
|
||||
#include "smplayer.h"
|
||||
|
||||
SMPlayerPluginWidget::SMPlayerPluginWidget(QWidget* parent,
|
||||
Qt::WindowFlags flags )
|
||||
:QFrame(parent)
|
||||
{
|
||||
player = new SMPlayer();
|
||||
|
||||
lay = new QVBoxLayout(this);
|
||||
lay->addWidget( player->gui() );
|
||||
}
|
||||
|
||||
SMPlayerPluginWidget::~SMPlayerPluginWidget()
|
||||
{
|
||||
delete player;
|
||||
}
|
||||
|
||||
|
||||
//==============================================================================
|
||||
|
||||
QString
|
||||
SMPlayerPlugin::pluginDescription() const
|
||||
{
|
||||
QString res;
|
||||
res = "A SMPlayer plugin" ;
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
QString
|
||||
SMPlayerPlugin::pluginName() const
|
||||
{
|
||||
return "SMPlayer" ;
|
||||
}
|
||||
|
||||
QWidget*
|
||||
SMPlayerPlugin::pluginWidget(QWidget * parent )
|
||||
{
|
||||
SMPlayerPluginWidget* wd = new SMPlayerPluginWidget(parent);
|
||||
return wd ;
|
||||
}
|
||||
|
||||
|
||||
Q_EXPORT_PLUGIN2(smplayer_plugin, SMPlayerPlugin)
|
Loading…
Add table
Add a link
Reference in a new issue