Skip to content
Snippets Groups Projects
Commit 7097056c authored by jack-parsons's avatar jack-parsons
Browse files

Making the table open with all columns fully visible

parent 0e3371fb
No related branches found
No related tags found
1 merge request!23Merge in Jack's changes
Pipeline #881 passed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment