summaryrefslogtreecommitdiffstats
path: root/qt-ui/simplewidgets.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-10-31 16:01:28 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-31 14:58:49 -0700
commit318256cfb47ee45f8928542e2446aa30bf3de89c (patch)
treee34d0b3afb23d254bc5cf749bf3db9d0a8eed98f /qt-ui/simplewidgets.cpp
parentff669362fb111a5422548576db2486cc4b2b3b13 (diff)
downloadsubsurface-318256cfb47ee45f8928542e2446aa30bf3de89c.tar.gz
Better layout for the filtering widget
Fix the layout size, moved some stuff around. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/simplewidgets.cpp')
-rw-r--r--qt-ui/simplewidgets.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp
index 710d0c3a7..bacaad5c4 100644
--- a/qt-ui/simplewidgets.cpp
+++ b/qt-ui/simplewidgets.cpp
@@ -460,6 +460,9 @@ TagFilter::TagFilter(QWidget *parent) : QWidget(parent)
{
ui.setupUi(this);
ui.label->setText(tr("Tags: "));
+#if QT_VERSION >= 0x050000
+ ui.filterInternalList->setClearButtonEnabled(true);
+#endif
QSortFilterProxyModel *filter = new QSortFilterProxyModel();
filter->setSourceModel(TagFilterModel::instance());
connect(ui.filterInternalList, SIGNAL(textChanged(QString)), filter, SLOT(setFilterFixedString(QString)));