473 self.rootNode.populated = False |
473 self.rootNode.populated = False |
474 idxStart = self.index(0, 0, QModelIndex()) |
474 idxStart = self.index(0, 0, QModelIndex()) |
475 idxEnd = self.index(0, 2, QModelIndex()) |
475 idxEnd = self.index(0, 2, QModelIndex()) |
476 self.dataChanged.emit(idxStart, idxEnd) |
476 self.dataChanged.emit(idxStart, idxEnd) |
477 |
477 |
478 def columnCount(self, parent=QModelIndex()): |
478 def columnCount(self, parent=QModelIndex()): # noqa: U100 |
479 """ |
479 """ |
480 Public method to get the column count. |
480 Public method to get the column count. |
481 |
481 |
482 @param parent the model parent |
482 @param parent the model parent |
483 @type QModelIndex |
483 @type QModelIndex |
931 |
931 |
932 header.resizeSection(0, 130) # variable column |
932 header.resizeSection(0, 130) # variable column |
933 header.resizeSection(1, 180) # value column |
933 header.resizeSection(1, 180) # value column |
934 header.resizeSection(2, 50) # type column |
934 header.resizeSection(2, 50) # type column |
935 |
935 |
936 header.sortIndicatorChanged.connect(lambda *x: self.varModel.getMore()) |
936 header.sortIndicatorChanged.connect( |
|
937 lambda *x: self.varModel.getMore() # noqa: U100 |
|
938 ) |
937 |
939 |
938 self.__createPopupMenus() |
940 self.__createPopupMenus() |
939 self.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu) |
941 self.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu) |
940 self.customContextMenuRequested.connect(self.__showContextMenu) |
942 self.customContextMenuRequested.connect(self.__showContextMenu) |
941 |
943 |