24 lines
473 B
C++
24 lines
473 B
C++
#include "TTK-BasePlugin.h"
|
|
|
|
QString BasePlugin::pname()
|
|
{
|
|
return "Base Plugin";
|
|
}
|
|
|
|
QString BasePlugin::pdesc()
|
|
{
|
|
return "Simple base plugin.";
|
|
}
|
|
|
|
QWidget* BasePlugin::pcontent()
|
|
{
|
|
QWidget *test = new QWidget();
|
|
test->setWindowTitle(tr("Base Plugin"));
|
|
test->resize(400, 300);
|
|
QVBoxLayout *mainLayout = new QVBoxLayout;
|
|
test->setLayout(mainLayout);
|
|
QIcon icon = QIcon(":/images/smile.png");
|
|
test->setWindowIcon(icon);
|
|
return test;
|
|
}
|