Changeset - 2e3b9132fe02
[Not reviewed]
default
0 2 0
Silverwing - 4 years ago 2020-06-21 13:22:28

fix: properly show up to 1000 disks with proper indices
2 files changed with 7 insertions and 1 deletions:
0 comments (0 inline, 0 general)
forms/mainwindow.py
Show inline comments
 
@@ -51,6 +51,8 @@ class CustomTableModel(QtCore.QAbstractT
 
    def headerData(self, section, orientation, role=QtCore.Qt.DisplayRole):
 
        if orientation == QtCore.Qt.Horizontal and role == QtCore.Qt.DisplayRole:
 
            return QtCore.QVariant(self.headers[section])
 
        elif orientation == QtCore.Qt.Vertical and role == QtCore.Qt.DisplayRole:
 
            return QtCore.QVariant(section)
 
        return super().headerData(section, orientation, role)
 

	
 
    def rowCount(self, parent=None):
ui/format_dialog.ui
Show inline comments
 
@@ -32,7 +32,11 @@
 
   <item>
 
    <layout class="QGridLayout" name="gridLayout">
 
     <item row="1" column="1">
 
      <widget class="QSpinBox" name="sb_to"/>
 
      <widget class="QSpinBox" name="sb_to">
 
       <property name="maximum">
 
        <number>999</number>
 
       </property>
 
      </widget>
 
     </item>
 
     <item row="0" column="1">
 
      <widget class="QLabel" name="label_2">
0 comments (0 inline, 0 general)