Skip to content
Snippets Groups Projects

Revert "Merge branch 'blackify-prosjekt-filer' into 'master'"

Closed Thomas Holene Løkkeborg requested to merge revert-5644ea93 into master
11 files
+ 140
219
Compare changes
  • Side-by-side
  • Inline
Files
11
@@ -4,7 +4,7 @@ from PySide2 import QtGui, QtCore
from soitool.modules.module_base import ModuleBase
HEADER_FONT = QtGui.QFont()
HEADER_FONT.setFamily("Arial")
HEADER_FONT.setFamily('Arial')
HEADER_FONT.setPointSize(12)
HEADER_FONT.setWeight(100)
@@ -78,20 +78,14 @@ class TableModule(ModuleBase, QTableWidget, metaclass=Meta):
"""
if event.key() == QtCore.Qt.Key_Question:
self.add_column()
elif (
event.modifiers() == QtCore.Qt.ShiftModifier
and event.key() == QtCore.Qt.Key_Underscore
):
elif (event.modifiers() == QtCore.Qt.ShiftModifier
and event.key() == QtCore.Qt.Key_Underscore):
self.remove_column()
elif (
event.modifiers() == QtCore.Qt.ControlModifier
and event.key() == QtCore.Qt.Key_Plus
):
elif (event.modifiers() == QtCore.Qt.ControlModifier
and event.key() == QtCore.Qt.Key_Plus):
self.add_row()
elif (
event.modifiers() == QtCore.Qt.ControlModifier
and event.key() == QtCore.Qt.Key_Underscore
):
elif (event.modifiers() == QtCore.Qt.ControlModifier
and event.key() == QtCore.Qt.Key_Underscore):
self.remove_row()
else:
super(TableModule, self).keyPressEvent(event)
Loading