From 2152bc5fca71548abefcf59f41092704dfcac1a7 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Mon, 13 Mar 2017 17:05:24 +0100 Subject: [PATCH] Ignore list editor: adjust the size of the columns in the table So the title of the column is fully visible. Adjust the default size and the size policy of the label so it behave correctly as the window get resized Issue #5600 --- src/gui/ignorelisteditor.cpp | 1 + src/gui/ignorelisteditor.ui | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/gui/ignorelisteditor.cpp b/src/gui/ignorelisteditor.cpp index e1f5bccef..d21cd0d87 100644 --- a/src/gui/ignorelisteditor.cpp +++ b/src/gui/ignorelisteditor.cpp @@ -57,6 +57,7 @@ IgnoreListEditor::IgnoreListEditor(QWidget *parent) : connect(ui->removePushButton, SIGNAL(clicked()), SLOT(slotRemoveCurrentItem())); connect(ui->addPushButton, SIGNAL(clicked()), SLOT(slotAddPattern())); + ui->tableWidget->resizeColumnsToContents(); ui->tableWidget->horizontalHeader()->setResizeMode(patternCol, QHeaderView::Stretch); ui->tableWidget->verticalHeader()->setVisible(false); diff --git a/src/gui/ignorelisteditor.ui b/src/gui/ignorelisteditor.ui index 08838622d..9001bc78a 100644 --- a/src/gui/ignorelisteditor.ui +++ b/src/gui/ignorelisteditor.ui @@ -6,8 +6,8 @@ 0 0 - 438 - 463 + 662 + 664 @@ -103,9 +103,18 @@ true + + + 0 + 0 + + + + Qt::PlainText + true -- 2.30.2