31 super().__init__(parent) |
31 super().__init__(parent) |
32 |
32 |
33 self.__bits = 0 |
33 self.__bits = 0 |
34 self.__value = 0 |
34 self.__value = 0 |
35 |
35 |
36 def rowCount(self, parent): # noqa: U100 |
36 def rowCount(self, _parent): |
37 """ |
37 """ |
38 Public method to get the number of rows of the model. |
38 Public method to get the number of rows of the model. |
39 |
39 |
40 @param parent parent index |
40 @param _parent parent index (unused) |
41 @type QModelIndex |
41 @type QModelIndex |
42 @return number of columns |
42 @return number of columns |
43 @rtype int |
43 @rtype int |
44 """ |
44 """ |
45 return 1 |
45 return 1 |
46 |
46 |
47 def columnCount(self, parent): # noqa: U100 |
47 def columnCount(self, _parent): |
48 """ |
48 """ |
49 Public method to get the number of columns of the model. |
49 Public method to get the number of columns of the model. |
50 |
50 |
51 @param parent parent index |
51 @param _parent parent index (unused) |
52 @type QModelIndex |
52 @type QModelIndex |
53 @return number of columns |
53 @return number of columns |
54 @rtype int |
54 @rtype int |
55 """ |
55 """ |
56 return self.__bits |
56 return self.__bits |