- selected rows in the Tools Tables will stay colored in blue after loosing focus instead of the default gray

- in NCC Tool the Tool name in the Parameters section will be the Tool ID in the Tool Table
- added an exception catch in case the plotcanvas init failed for the OpenGL graphic engine and warn user about what happened
This commit is contained in:
Marius Stanciu
2020-01-09 00:06:38 +02:00
committed by Marius
parent 5ff9f953c6
commit 856f568f9e
4 changed files with 64 additions and 25 deletions

View File

@@ -2006,6 +2006,11 @@ class FCTable(QtWidgets.QTableWidget):
def __init__(self, drag_drop=False, protected_rows=None, parent=None):
super(FCTable, self).__init__(parent)
palette = QtGui.QPalette()
palette.setColor(QtGui.QPalette.Inactive, QtGui.QPalette.Highlight,
palette.color(QtGui.QPalette.Active, QtGui.QPalette.Highlight))
self.setPalette(palette)
if drag_drop:
self.setDragEnabled(True)
self.setAcceptDrops(True)