Commit 7c9b559f authored by Radek Hušek's avatar Radek Hušek
Browse files

fix typo

parent f0135999
...@@ -87,22 +87,22 @@ class CPP(QWidget): ...@@ -87,22 +87,22 @@ class CPP(QWidget):
self._duplex.addItem("Short Side", "duplex=two-sided-long-edge") self._duplex.addItem("Short Side", "duplex=two-sided-long-edge")
self._duplex.setCurrentIndex(1) self._duplex.setCurrentIndex(1)
self._pdfbook = QCheckBox('Use pdfbook', self) self._pdfbook = QCheckBox('Use pdfbook', self)
self._stample = QCheckBox('Stample', self) self._staple = QCheckBox('Staple', self)
self._stample.setEnabled(False) self._staple.setEnabled(False)
def _pdfbook_changed(enabled): def _pdfbook_changed(enabled):
self._stample.setEnabled(enabled) self._staple.setEnabled(enabled)
self._duplex.setEnabled(not enabled) self._duplex.setEnabled(not enabled)
if enabled: if enabled:
self._duplex.setCurrentIndex(1) self._duplex.setCurrentIndex(1)
else: else:
self._stample.setChecked(False) self._staple.setChecked(False)
self._pdfbook.clicked[bool].connect(_pdfbook_changed) self._pdfbook.clicked[bool].connect(_pdfbook_changed)
hbox.addWidget(self._duplex) hbox.addWidget(self._duplex)
vbox.addLayout(hbox) vbox.addLayout(hbox)
vbox.addWidget(self._pdfbook) vbox.addWidget(self._pdfbook)
vbox.addWidget(self._stample) vbox.addWidget(self._staple)
o = QComboBox(self) o = QComboBox(self)
for (p, cmd) in PRINTERS: for (p, cmd) in PRINTERS:
...@@ -151,7 +151,7 @@ class CPP(QWidget): ...@@ -151,7 +151,7 @@ class CPP(QWidget):
else: else:
cmd = self._printer.currentData().copy() cmd = self._printer.currentData().copy()
cmd += [ "-o", self._duplex.currentData() ] cmd += [ "-o", self._duplex.currentData() ]
if self._stample.isChecked(): if self._staple.isChecked():
cmd += [ "-o", "XRFold=BiFoldStaple" ] cmd += [ "-o", "XRFold=BiFoldStaple" ]
cmd.append("-") cmd.append("-")
pipeline.append(cmd) pipeline.append(cmd)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment