diff options
-rw-r--r-- | desktop-widgets/filterconstraintwidget.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/filterconstraintwidget.cpp b/desktop-widgets/filterconstraintwidget.cpp index 8cc8f130a..441ab73ea 100644 --- a/desktop-widgets/filterconstraintwidget.cpp +++ b/desktop-widgets/filterconstraintwidget.cpp @@ -45,7 +45,9 @@ static QListWidget *makeMultipleChoice(const QModelIndex &index, int role) return nullptr; QListWidget *res = new QListWidget; res->addItems(list); + res->setSizePolicy(QSizePolicy::Maximum,QSizePolicy::Maximum); res->setSelectionMode(QAbstractItemView::ExtendedSelection); + res->setFixedSize(res->sizeHintForColumn(0) + 2 * res->frameWidth(), res->sizeHintForRow(0) * res->count() + 2 * res->frameWidth()); return res; } |