Fix SelectionMode on ui file

This commit is contained in:
donoban 2020-10-22 19:24:13 +02:00
parent 954f2dc7f7
commit 629f16f24c
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5
2 changed files with 1 additions and 2 deletions

View File

@ -715,7 +715,6 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QMainWindow):
self.table.setModel(self.proxy)
self.table.setItemDelegateForColumn(3, StateIconDelegate())
self.table.resizeColumnsToContents()
self.table.setSelectionMode(QAbstractItemView.ExtendedSelection)
selection_model = self.table.selectionModel()
selection_model.selectionChanged.connect(self.table_selection_changed)

View File

@ -108,7 +108,7 @@
<bool>true</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::SingleSelection</enum>
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>