946 |
946 |
947 header.resizeSection(0, 130) # variable column |
947 header.resizeSection(0, 130) # variable column |
948 header.resizeSection(1, 180) # value column |
948 header.resizeSection(1, 180) # value column |
949 header.resizeSection(2, 50) # type column |
949 header.resizeSection(2, 50) # type column |
950 |
950 |
951 header.sortIndicatorChanged.connect( |
951 header.sortIndicatorChanged.connect(lambda *_x: self.varModel.getMore()) |
952 lambda *x: self.varModel.getMore() # noqa: U100 |
|
953 ) |
|
954 |
952 |
955 self.__createPopupMenus() |
953 self.__createPopupMenus() |
956 self.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu) |
954 self.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu) |
957 self.customContextMenuRequested.connect(self.__showContextMenu) |
955 self.customContextMenuRequested.connect(self.__showContextMenu) |
958 |
956 |