- Auto-scroll standard aktiv
- Tag-Filter wird gespeichert - Tag Monitor kann bei einem Tag jetzt pro Key mehrere Werte in einer Tabelle anzeigen - Bug für Clear behoben
This commit is contained in:
@@ -7,7 +7,6 @@ TagWidget::TagWidget(QWidget *parent)
|
||||
outerLayout->setContentsMargins(4, 4, 4, 4);
|
||||
outerLayout->setSpacing(4);
|
||||
|
||||
// Header row
|
||||
auto *headerLayout = new QHBoxLayout();
|
||||
auto *titleLabel = new QLabel(tr("<b>Tag Monitor</b>"), this);
|
||||
auto *clearBtn = new QPushButton(tr("Clear all"), this);
|
||||
@@ -18,7 +17,6 @@ TagWidget::TagWidget(QWidget *parent)
|
||||
headerLayout->addWidget(clearBtn);
|
||||
outerLayout->addLayout(headerLayout);
|
||||
|
||||
// Scrollable panel area
|
||||
auto *scrollArea = new QScrollArea(this);
|
||||
scrollArea->setWidgetResizable(true);
|
||||
scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
|
||||
@@ -26,7 +24,7 @@ TagWidget::TagWidget(QWidget *parent)
|
||||
m_panelLayout = new QVBoxLayout(container);
|
||||
m_panelLayout->setContentsMargins(0, 0, 0, 0);
|
||||
m_panelLayout->setSpacing(6);
|
||||
m_panelLayout->addStretch(); // pushes panels to the top
|
||||
m_panelLayout->addStretch();
|
||||
scrollArea->setWidget(container);
|
||||
outerLayout->addWidget(scrollArea, 1);
|
||||
}
|
||||
@@ -36,7 +34,6 @@ void TagWidget::handleTag(const QString &tag, const QString &value)
|
||||
if (!m_panels.contains(tag)) {
|
||||
auto *panel = new TagPanel(tag, this);
|
||||
m_panels.insert(tag, panel);
|
||||
// Insert before the stretch at the end
|
||||
m_panelLayout->insertWidget(m_panelLayout->count() - 1, panel);
|
||||
}
|
||||
m_panels[tag]->update(value);
|
||||
|
||||
Reference in New Issue
Block a user