Changed the way the inventory is displayed. Suppliers only for testing.

Fri, 18 Mar 2022 15:57:27 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 18 Mar 2022 15:57:27 +0100
changeset 61
3fea5dde2b99
parent 60
0d65238ebedc
child 62
6d1e43259810

Changed the way the inventory is displayed. Suppliers only for testing.

src/InventorySuppliers.cpp file | annotate | diff | comparison | revisions
ui/InventorySuppliers.ui file | annotate | diff | comparison | revisions
--- a/src/InventorySuppliers.cpp	Thu Mar 17 13:54:39 2022 +0100
+++ b/src/InventorySuppliers.cpp	Fri Mar 18 15:57:27 2022 +0100
@@ -50,7 +50,7 @@
     ui->tableSuppliers->setRowCount(query.size());
     ui->tableSuppliers->setHorizontalHeaderLabels(labels);
     ui->tableSuppliers->verticalHeader()->hide();
-    ui->tableSuppliers->setFixedSize(1030 + 24, 640);	/* Even if this is too large, it works */
+    /* Set the widget size to 1054 x 575 in the ui. */
 
     query.first();
     for (int ridx = 0 ; ridx < query.size() ; ridx++ ) {
--- a/ui/InventorySuppliers.ui	Thu Mar 17 13:54:39 2022 +0100
+++ b/ui/InventorySuppliers.ui	Fri Mar 18 15:57:27 2022 +0100
@@ -19,6 +19,18 @@
      <property name="enabled">
       <bool>true</bool>
      </property>
+     <property name="sizePolicy">
+      <sizepolicy hsizetype="Fixed" vsizetype="Expanding">
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="minimumSize">
+      <size>
+       <width>1054</width>
+       <height>0</height>
+      </size>
+     </property>
     </widget>
    </item>
    <item row="1" column="0">
@@ -57,7 +69,7 @@
          <string>Quit</string>
         </property>
         <property name="icon">
-         <iconset resource="../../../../../../home/mbroek/MyProjects/bmsapp/resources/icons.qrc">
+         <iconset>
           <normaloff>:icons/silk/door_out.png</normaloff>:icons/silk/door_out.png</iconset>
         </property>
        </widget>
@@ -74,7 +86,7 @@
          <string>New</string>
         </property>
         <property name="icon">
-         <iconset resource="../../../../../../home/mbroek/MyProjects/bmsapp/resources/icons.qrc">
+         <iconset>
           <normaloff>:icons/silk/table_row_insert.png</normaloff>:icons/silk/table_row_insert.png</iconset>
         </property>
        </widget>

mercurial