Remove the width setting from the switch widget

This commit is contained in:
Veronica Berglyd Olsen
2024-02-09 23:26:26 +01:00
parent 467772c489
commit 186cead603
7 changed files with 27 additions and 27 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ class NSwitchBox(QScrollArea):
label = QLabel(text)
self._content.addWidget(label, self._index, 1, Qt.AlignLeft)
switch = NSwitch(width=self._wSwitch, height=self._hSwitch)
switch = NSwitch(self, height=self._hSwitch)
switch.setChecked(default)
switch.toggled.connect(lambda state: self._emitSwitchSignal(identifier, state))
self._content.addWidget(switch, self._index, 2, Qt.AlignRight)