mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-31 11:17:52 -05:00
33 lines
725 B
C++
33 lines
725 B
C++
#include "OpenRGBPluginContainer.h"
|
|
#include "ui_OpenRGBPluginContainer.h"
|
|
|
|
Ui::OpenRGBPluginContainer::OpenRGBPluginContainer(QWidget *plugin, QWidget *parent) :
|
|
QWidget(parent),
|
|
ui(new Ui::OpenRGBPluginContainerUi)
|
|
{
|
|
ui->setupUi(this);
|
|
|
|
plugin_widget = plugin;
|
|
plugin_widget->setParent(this);
|
|
|
|
ui->PluginContainerLayout->layout()->addWidget(plugin_widget);
|
|
|
|
Hide();
|
|
}
|
|
|
|
Ui::OpenRGBPluginContainer::~OpenRGBPluginContainer()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void Ui::OpenRGBPluginContainer::Hide()
|
|
{
|
|
plugin_widget->hide();
|
|
ui->PluginContainerLayout->layout()->invalidate();
|
|
}
|
|
|
|
void Ui::OpenRGBPluginContainer::Show()
|
|
{
|
|
plugin_widget->show();
|
|
ui->PluginContainerLayout->layout()->invalidate();
|
|
} |