Files
gcs-nf/App/ToolsUI/tools_Index0/tools_Index0.cpp
T
2020-06-04 18:20:13 +08:00

51 lines
922 B
C++

#include "Tools_Index0.h"
#include "ui_tools_Index0.h"
Tools_Index0::Tools_Index0(QWidget *parent) :
QWidget(parent),
ui(new Ui::Tools_Index0)
{
ui->setupUi(this);
//load qss
QFile file(":/qss/Setting.qss");
file.open(QFile::ReadOnly);
QTextStream filetext(&file);
QString stylesheet = filetext.readAll();
this->setStyleSheet(stylesheet);
file.close();
}
Tools_Index0::~Tools_Index0()
{
delete ui;
}
void Tools_Index0::resizeEvent(QResizeEvent *event)
{
Q_UNUSED(event)
if(Inspect)
{
Inspect->setGeometry(0,0,ui->frame->width(),ui->frame->height());
}
update();
}
void Tools_Index0::setInstallWidget(QWidget *w)
{
Inspect = w;
Inspect->setParent(this);
if(Inspect)
{
//qDebug() << "install param inspector";
Inspect->setGeometry(0,0,ui->frame->width(),ui->frame->height());
Inspect->show();
}
}