ui: cleanup controls (#28809)

* cleanup controls

* restore LayoutWidget
old-commit-hash: 2d37c219e794cc4d8ed0de031b38b183af281db3
This commit is contained in:
Dean Lee
2023-07-06 01:50:14 +08:00
committed by GitHub
parent 841f8bfb3f
commit c25ca091ff
3 changed files with 0 additions and 15 deletions

View File

@@ -73,7 +73,6 @@ MapSettings::MapSettings(bool closeable, QWidget *parent)
});
frame->addWidget(current_widget);
frame->addSpacing(32);
frame->addWidget(horizontal_line());
QWidget *destinations_container = new QWidget(this);
destinations_layout = new QVBoxLayout(destinations_container);

View File

@@ -3,18 +3,6 @@
#include <QPainter>
#include <QStyleOption>
QFrame *horizontal_line(QWidget *parent) {
QFrame *line = new QFrame(parent);
line->setFrameShape(QFrame::StyledPanel);
line->setStyleSheet(R"(
border-width: 1px;
border-bottom-style: solid;
border-color: gray;
)");
line->setFixedHeight(2);
return line;
}
AbstractControl::AbstractControl(const QString &title, const QString &desc, const QString &icon, QWidget *parent) : QFrame(parent) {
QVBoxLayout *main_layout = new QVBoxLayout(this);
main_layout->setMargin(0);

View File

@@ -11,8 +11,6 @@
#include "selfdrive/ui/qt/widgets/input.h"
#include "selfdrive/ui/qt/widgets/toggle.h"
QFrame *horizontal_line(QWidget *parent = nullptr);
class ElidedLabel : public QLabel {
Q_OBJECT