ui: cleanup controls (#28809)
* cleanup controls * restore LayoutWidget old-commit-hash: 2d37c219e794cc4d8ed0de031b38b183af281db3
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user