aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEddy Pedroni <eddy@0xf7.com>2022-01-01 15:49:23 +0100
committerEddy Pedroni <eddy@0xf7.com>2022-01-01 15:49:23 +0100
commit131f08139165c8e6701a7330ae7b3b2e71cf590b (patch)
treeaf47218f91d6b978bbd40ba3c1fdcb3b4cd0bb7c
parent328d9ae201cabe8e4189736cd806ecea7b675200 (diff)
Fixed Qt interface problems
-rw-r--r--solo_tool_qt.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/solo_tool_qt.py b/solo_tool_qt.py
index bca71d0..8edd886 100644
--- a/solo_tool_qt.py
+++ b/solo_tool_qt.py
@@ -30,11 +30,11 @@ class ABListModel(QAbstractListModel):
def data(self, index, role):
if role == Qt.DisplayRole:
- ab = self.soloTool.getAbLimits()[index.row()]
+ ab = self.soloTool.getStoredAbLimits()[index.row()]
return f"{ab[0]} - {ab[1]}"
def rowCount(self, index):
- return len(self.soloTool.getAbLimits())
+ return len(self.soloTool.getStoredAbLimits())
class MainWindow(QMainWindow, Ui_MainWindow):
def __init__(self, *args, **kwargs):
@@ -145,7 +145,7 @@ class MainWindow(QMainWindow, Ui_MainWindow):
def abListSelectionChanged(self, i):
if i is not None and not i.isEmpty():
index = i.indexes()[0].row()
- ab = self.soloTool.getAbLimits()[index]
+ ab = self.soloTool.getStoredAbLimits()[index]
self.soloTool.loadAbLimits(index)
self.aSlider.setValue(int(ab[0] * POSITION_FACTOR))
self.bSlider.setValue(int(ab[1] * POSITION_FACTOR))