Ignore list editor: adjust the size of the columns in the table
authorOlivier Goffart <ogoffart@woboq.com>
Mon, 13 Mar 2017 16:05:24 +0000 (17:05 +0100)
committerOlivier Goffart <ogoffart@woboq.com>
Mon, 13 Mar 2017 16:05:24 +0000 (17:05 +0100)
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
src/gui/ignorelisteditor.ui

index e1f5bccef3853e2da52eae0dc0513952af703916..d21cd0d875efbb5fe469f7ed90ee32bc39132087 100644 (file)
@@ -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);
 
index 08838622d281952b32b0e151421a5ea0c4f173aa..9001bc78a896095152d89d5144057f95a134a856 100644 (file)
@@ -6,8 +6,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>438</width>
-    <height>463</height>
+    <width>662</width>
+    <height>664</height>
    </rect>
   </property>
   <property name="windowTitle">
         <property name="enabled">
          <bool>true</bool>
         </property>
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
         <property name="text">
          <string/>
         </property>
+        <property name="textFormat">
+         <enum>Qt::PlainText</enum>
+        </property>
         <property name="wordWrap">
          <bool>true</bool>
         </property>