Files
Z-bin c5a7c8dd07 feat(power): add operations when battery is low
Description: 添加低电量执行操作行为

Log: 添加低电量执行操作行为
2020-12-17 15:27:18 +08:00

41 lines
1.0 KiB
C++

#include "comboxframe.h"
ComboxFrame:: ComboxFrame(QString labelStr, QWidget *parent) : mTitleName(labelStr), QFrame(parent) {
this->setMinimumSize(550, 50);
this->setMaximumSize(16777215, 50);
this->setFrameShape(QFrame::Shape::Box);
mTitleLabel = new QLabel(mTitleName, this);
mCombox = new QComboBox(this);
mHLayout = new QHBoxLayout(this);
mHLayout->addWidget(mTitleLabel);
mHLayout->addWidget(mCombox);
this->setLayout(mHLayout);
}
ComboxFrame::ComboxFrame(bool isNum, QString labelStr, QWidget *parent) : mTitleName(labelStr), QFrame(parent)
{
Q_UNUSED(isNum)
this->setMinimumSize(550, 50);
this->setMaximumSize(16777215, 50);
this->setFrameShape(QFrame::Shape::Box);
mTitleLabel = new QLabel(mTitleName, this);
mNumCombox = new QComboBox(this);
mCombox = new QComboBox(this);
mHLayout = new QHBoxLayout(this);
mHLayout->addWidget(mTitleLabel);
mHLayout->addWidget(mNumCombox);
mHLayout->addWidget(mCombox);
this->setLayout(mHLayout);
}
ComboxFrame::~ComboxFrame() {
}