aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/filterwidget.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-11-07 13:56:28 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-11-07 11:37:51 -0800
commit5caac4c480bee6d471118101ef10eca7575dd092 (patch)
treee83cd1a8b510d19a15d8938d158f10f3a00cfedd /desktop-widgets/filterwidget.cpp
parent396598430ba19416795edc5e1b960efdcafed5c6 (diff)
downloadsubsurface-5caac4c480bee6d471118101ef10eca7575dd092.tar.gz
filter: don't render filter preset name as HTML text
QLabels must be explicitly set to not accept HTML input. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/filterwidget.cpp')
-rw-r--r--desktop-widgets/filterwidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/filterwidget.cpp b/desktop-widgets/filterwidget.cpp
index 026e222f3..ce03a7934 100644
--- a/desktop-widgets/filterwidget.cpp
+++ b/desktop-widgets/filterwidget.cpp
@@ -33,6 +33,8 @@ FilterWidget::FilterWidget(QWidget* parent) :
ui.presetTable->horizontalHeader()->setStretchLastSection(true);
ui.presetTable->resizeColumnsToContents();
+ ui.currentSet->setTextFormat(Qt::PlainText);
+
connect(ui.clear, &QToolButton::clicked, this, &FilterWidget::clearFilter);
connect(ui.close, &QToolButton::clicked, this, &FilterWidget::closeFilter);
connect(ui.fullText, &QLineEdit::textChanged, this, &FilterWidget::filterChanged);