SoftwarePanel: fix padding (#21237)

pull/69/head
Dean Lee 4 years ago committed by GitHub
parent 66bf6fea5d
commit d09c1de0ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/ui/qt/offroad/settings.cc
  2. 2
      selfdrive/ui/qt/offroad/settings.h

@ -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); QVBoxLayout *main_layout = new QVBoxLayout(this);
setLayout(main_layout); setLayout(main_layout);
setStyleSheet(R"(QLabel {font-size: 50px;})"); setStyleSheet(R"(QLabel {font-size: 50px;})");

@ -30,7 +30,7 @@ public:
explicit TogglesPanel(QWidget *parent = nullptr); explicit TogglesPanel(QWidget *parent = nullptr);
}; };
class SoftwarePanel : public QFrame { class SoftwarePanel : public QWidget {
Q_OBJECT Q_OBJECT
public: public:
explicit SoftwarePanel(QWidget* parent = nullptr); explicit SoftwarePanel(QWidget* parent = nullptr);

Loading…
Cancel
Save