From 7097056ccc9f7c658101e9cbba26a3f3bd9d5cb0 Mon Sep 17 00:00:00 2001
From: jack-parsons <jack.parsons.uk@icloud.com>
Date: Fri, 26 Jul 2019 13:45:05 +0100
Subject: [PATCH] Making the table open with all columns fully visible

---
 GUIs/AmpScanGUI.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/GUIs/AmpScanGUI.py b/GUIs/AmpScanGUI.py
index b737fda..e74ef0c 100644
--- a/GUIs/AmpScanGUI.py
+++ b/GUIs/AmpScanGUI.py
@@ -323,7 +323,7 @@ class AmpScanGUI(QMainWindow):
                                 triggered=self.register)
         self.analyse = QAction(QIcon('open.png'), 'Analyse', self,
                                 triggered=self.analyse)
-        self.openObjectManager = QAction(QIcon('open.png'), 'Open Object Manager', self,
+        self.openObjectManager = QAction(QIcon('open.png'), 'Show Object Manager', self,
                                 triggered=self.openAmpObjectManager)
 
     def createMenus(self):
@@ -381,6 +381,10 @@ class fileManager(QMainWindow):
         self.table.setColumnCount(5)
         self.table.setHorizontalHeaderLabels(['Name', 'Type', 'Colour', 'Opacity', 'Display'])
         self.n = self.table.rowCount()
+        # Set the minimum table size to when it is fully expanded
+        self.table.setMinimumWidth(self.table.frameWidth()*2
+                                   + self.table.horizontalHeader().length()
+                                   + self.table.verticalHeader().width())
         
     def addRow(self, name, amp):
         self.table.insertRow(self.n)
-- 
GitLab