open-hyperion/ORGBExamplePlugin.cpp

27 lines
571 B
C++
Raw Normal View History

2020-12-11 23:53:32 +00:00
#include "ORGBExamplePlugin.h"
#include <QDebug>
std::string ORGBPlugin::PluginName() const
{
return "ExamplePlugin";
}
2020-12-12 17:39:01 +00:00
std::string ORGBPlugin::PluginDesc() const
{
return "This is an Example plugin for OpenRGB";
}
std::string ORGBPlugin::PluginLocal() const
{
return "InfoTab";
}
QWidget* ORGBPlugin::CreateGUI(QWidget *Parent) const
{
QWidget *ORGBExamplePage = new QWidget(Parent);
QLabel *ORGBExampleLabel = new QLabel(ORGBExamplePage);
ORGBExampleLabel->setText("This is an example page added by plugins");
return ORGBExamplePage;
}