src/eric7/UI/NumbersWidget.py

branch
eric7
changeset 10069
435cc5875135
parent 9653
e67609152c5e
child 10433
328f3ec4b77a
--- a/src/eric7/UI/NumbersWidget.py	Thu May 25 11:12:05 2023 +0200
+++ b/src/eric7/UI/NumbersWidget.py	Thu May 25 19:51:47 2023 +0200
@@ -7,7 +7,7 @@
 Module implementing a widget to show numbers in different formats.
 """
 
-from PyQt6.QtCore import QAbstractTableModel, Qt, pyqtSignal, pyqtSlot
+from PyQt6.QtCore import QAbstractTableModel, QModelIndex, Qt, pyqtSignal, pyqtSlot
 from PyQt6.QtWidgets import QHeaderView, QWidget
 
 from eric7.EricGui import EricPixmapCache
@@ -32,7 +32,7 @@
         self.__bits = 0
         self.__value = 0
 
-    def rowCount(self, parent):
+    def rowCount(self, parent):  # noqa: U100
         """
         Public method to get the number of rows of the model.
 
@@ -41,7 +41,7 @@
         """
         return 1
 
-    def columnCount(self, parent):
+    def columnCount(self, parent):  # noqa: U100
         """
         Public method to get the number of columns of the model.
 
@@ -69,7 +69,7 @@
 
         return None
 
-    def flags(self, index):
+    def flags(self, index):  # noqa: U100
         """
         Public method to get flags from the model.
 
@@ -354,6 +354,7 @@
         """
         self.insertNumber.emit(self.binEdit.text())
 
+    @pyqtSlot(QModelIndex, QModelIndex)
     def __binModelDataChanged(self, start, end):
         """
         Private slot to handle a change of the binary model value by the user.

eric ide

mercurial