From: Olivier Goffart Date: Mon, 13 Mar 2017 16:05:24 +0000 (+0100) Subject: Ignore list editor: adjust the size of the columns in the table X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~790^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2152bc5fca71548abefcf59f41092704dfcac1a7;p=nextcloud-desktop.git 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 --- 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