Disable editing in format table

Set the format table's edit triggers to NoEditTriggers to prevent cell editing and avoid selection box on double-click.
This commit is contained in:
oop7
2025-12-06 21:40:49 +02:00
parent e8482ce180
commit 835ae45121
+3
View File
@@ -103,6 +103,9 @@ class FormatTableMixin:
# Set selection mode to no selection (since we're using checkboxes) # Set selection mode to no selection (since we're using checkboxes)
self.format_table.setSelectionMode(QTableWidget.SelectionMode.NoSelection) self.format_table.setSelectionMode(QTableWidget.SelectionMode.NoSelection)
# Disable editing to prevent the selection box on double-click
self.format_table.setEditTriggers(QTableWidget.EditTrigger.NoEditTriggers)
self.format_table.setStyleSheet( self.format_table.setStyleSheet(
""" """