Remove const

This commit is contained in:
silas 2020-12-17 08:42:24 -06:00
parent 0f3bc7d0e0
commit a5fdc4f12b
3 changed files with 18 additions and 18 deletions

View file

@ -1,34 +1,34 @@
#include "ORGBExamplePlugin.h"
#include "Dependencies/ResourceManager.h"
bool ORGBPlugin::HasCustomIcon() const
bool ORGBPlugin::HasCustomIcon()
{
return false;
}
QLabel* ORGBPlugin::TabLabel() const
QLabel* ORGBPlugin::TabLabel()
{
QLabel *TLabel = new QLabel();
TLabel->setText("Example");
return TLabel;
}
std::string ORGBPlugin::PluginName() const
std::string ORGBPlugin::PluginName()
{
return "ExamplePlugin";
}
std::string ORGBPlugin::PluginDesc() const
std::string ORGBPlugin::PluginDesc()
{
return "This is an Example plugin for OpenRGB";
}
std::string ORGBPlugin::PluginLocal() const
std::string ORGBPlugin::PluginLocal()
{
return "InfoTab";
}
QWidget* ORGBPlugin::CreateGUI(QWidget *Parent, ResourceManager *RM) const
QWidget* ORGBPlugin::CreateGUI(QWidget *Parent, ResourceManager *RM)
{
QWidget *ORGBExamplePage = new QWidget(Parent);
QLabel *ORGBExampleLabel = new QLabel(ORGBExamplePage);

View file

@ -21,14 +21,14 @@ class ORGBPlugin : public QObject, public ORGBPluginInterface
public:
~ORGBPlugin() override {}
bool HasCustomIcon() const override;
QLabel* TabLabel() const override;
bool HasCustomIcon() override;
QLabel* TabLabel() override;
std::string PluginName() const override;
std::string PluginDesc() const override;
std::string PluginLocal() const override;
std::string PluginName() override;
std::string PluginDesc() override;
std::string PluginLocal() override;
QWidget* CreateGUI(QWidget *Parent, ResourceManager *RM = nullptr) const override;
QWidget* CreateGUI(QWidget *Parent, ResourceManager *RM = nullptr) override;
private slots:
void on_ExampleButton_clicked();

View file

@ -12,14 +12,14 @@ class ORGBPluginInterface
public:
virtual ~ORGBPluginInterface() {}
virtual bool HasCustomIcon() const = 0;
virtual QLabel* TabLabel() const = 0;
virtual bool HasCustomIcon() = 0;
virtual QLabel* TabLabel() = 0;
virtual std::string PluginName() const = 0;
virtual std::string PluginDesc() const = 0;
virtual std::string PluginLocal() const = 0;
virtual std::string PluginName() = 0;
virtual std::string PluginDesc() = 0;
virtual std::string PluginLocal() = 0;
virtual QWidget* CreateGUI(QWidget *Parent, ResourceManager *RM = nullptr) const = 0;
virtual QWidget* CreateGUI(QWidget *Parent, ResourceManager *RM = nullptr) = 0;
};
Q_DECLARE_INTERFACE(ORGBPluginInterface, ORGBPluginInterface_IID)