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:
1 parent
e8482ce180
commit
835ae45121
1 file changed
+3
@@ -103,6 +103,9 @@ class FormatTableMixin:
|
||||
|
||||
# Set selection mode to no selection (since we're using checkboxes)
|
||||
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(
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user