Commit 7097056c authored by jack-parsons's avatar jack-parsons
Browse files

Making the table open with all columns fully visible

parent 0e3371fb
Pipeline #881 passed with stage
in 42 seconds
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment