SoftwarePanel: fix padding (#21237)

This commit is contained in:
Dean Lee
2021-06-12 08:40:21 +08:00
committed by GitHub
parent 66bf6fea5d
commit d09c1de0ec
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -203,7 +203,7 @@ DevicePanel::DevicePanel(QWidget* parent) : QWidget(parent) {
)");
}
SoftwarePanel::SoftwarePanel(QWidget* parent) : QFrame(parent) {
SoftwarePanel::SoftwarePanel(QWidget* parent) : QWidget(parent) {
QVBoxLayout *main_layout = new QVBoxLayout(this);
setLayout(main_layout);
setStyleSheet(R"(QLabel {font-size: 50px;})");
+1 -1
View File
@@ -30,7 +30,7 @@ public:
explicit TogglesPanel(QWidget *parent = nullptr);
};
class SoftwarePanel : public QFrame {
class SoftwarePanel : public QWidget {
Q_OBJECT
public:
explicit SoftwarePanel(QWidget* parent = nullptr);