Connected scaleModeCombo to code (does nothhing)

This commit is contained in:
Roberto Alsina 2020-02-01 13:09:31 -03:00
parent 3eced60f7b
commit 00862a6b2b
2 changed files with 11 additions and 1 deletions

View File

@ -101,11 +101,16 @@ class Window(QObject):
self.ui.okButton.clicked.connect(self.do_ok) self.ui.okButton.clicked.connect(self.do_ok)
self.ui.resetButton.clicked.connect(self.do_reset) self.ui.resetButton.clicked.connect(self.do_reset)
self.ui.cancelButton.clicked.connect(self.ui.reject) self.ui.cancelButton.clicked.connect(self.ui.reject)
self.ui.scaleModeCombo.currentTextChanged.connect(self.scale_mode_changed)
def scale_mode_changed(self):
mon = self.ui.screenCombo.currentText()
scale_mode = self.ui.scaleModeCombo.currentText()
print(f'Set {mon} scale mode to {scale_mode}')
def replica_changed(self): def replica_changed(self):
mon = self.ui.screenCombo.currentText() mon = self.ui.screenCombo.currentText()
replicate = self.ui.replicaOf.currentText() replicate = self.ui.replicaOf.currentText()
print(f'Making {mon} a replica of {replicate}') print(f'Making {mon} a replica of {replicate}')
def do_reset(self): def do_reset(self):

View File

@ -197,6 +197,11 @@
<string>Manual</string> <string>Manual</string>
</property> </property>
</item> </item>
<item>
<property name="text">
<string>Disabled (1x1)</string>
</property>
</item>
<item> <item>
<property name="text"> <property name="text">
<string>Automatic: physical dimensions</string> <string>Automatic: physical dimensions</string>