mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
desktop: maximize size of last column in filter-preset table
This was just ugly: the column with the "trash" symbol and the name had the same size. On creation of the object, make the last column expand and adapt the size of the "trash" column according to its content. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
360123d432
commit
68b63534a3
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ FilterWidget::FilterWidget(QWidget* parent) :
|
|||
ui.presetTable->setModel(FilterPresetModel::instance());
|
||||
ui.presetTable->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
ui.presetTable->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||
ui.presetTable->horizontalHeader()->setStretchLastSection(true);
|
||||
ui.presetTable->resizeColumnsToContents();
|
||||
|
||||
connect(ui.clear, &QToolButton::clicked, this, &FilterWidget::clearFilter);
|
||||
connect(ui.close, &QToolButton::clicked, this, &FilterWidget::closeFilter);
|
||||
|
|
Loading…
Add table
Reference in a new issue