strip more prefs

This commit is contained in:
Damien Elmes 2009-01-14 17:15:33 +09:00
parent d1ae9572d2
commit 681b628a65
2 changed files with 16 additions and 38 deletions

View file

@ -100,12 +100,10 @@ class Preferences(QDialog):
self.config['saveOnClose'] = self.dialog.saveWhenClosing.isChecked()
def setupAdvanced(self):
self.dialog.showToolbar.setChecked(self.config['showToolbar'])
self.dialog.showEstimates.setChecked(not self.config['suppressEstimates'])
self.dialog.showStudyOptions.setChecked(self.config['showStudyScreen'])
self.dialog.showTray.setChecked(self.config['showTrayIcon'])
self.dialog.showTimer.setChecked(self.config['showTimer'])
self.dialog.scrollToAnswer.setChecked(self.config['scrollToAnswer'])
self.dialog.showDivider.setChecked(self.config['qaDivider'])
self.dialog.splitQA.setChecked(self.config['splitQA'])
self.dialog.addZeroSpace.setChecked(self.config['addZeroSpace'])
@ -115,12 +113,10 @@ class Preferences(QDialog):
self.dialog.alternativeTheme.setShown(False)
def updateAdvanced(self):
self.config['showToolbar'] = self.dialog.showToolbar.isChecked()
self.config['showTrayIcon'] = self.dialog.showTray.isChecked()
self.config['showTimer'] = self.dialog.showTimer.isChecked()
self.config['suppressEstimates'] = not self.dialog.showEstimates.isChecked()
self.config['showStudyScreen'] = self.dialog.showStudyOptions.isChecked()
self.config['scrollToAnswer'] = self.dialog.scrollToAnswer.isChecked()
self.config['qaDivider'] = self.dialog.showDivider.isChecked()
self.config['splitQA'] = self.dialog.splitQA.isChecked()
self.config['addZeroSpace'] = self.dialog.addZeroSpace.isChecked()

View file

@ -329,34 +329,6 @@
</property>
</widget>
</item>
<item row="8" column="0" >
<widget class="QCheckBox" name="showTray" >
<property name="text" >
<string>Show tray icon</string>
</property>
</widget>
</item>
<item row="9" column="0" >
<widget class="QCheckBox" name="scrollToAnswer" >
<property name="text" >
<string>Scroll down to the answer when showing answer</string>
</property>
</widget>
</item>
<item row="10" column="0" >
<widget class="QCheckBox" name="addZeroSpace" >
<property name="text" >
<string>Add hidden char to text (fixes Thai on OSX)</string>
</property>
</widget>
</item>
<item row="7" column="0" >
<widget class="QCheckBox" name="showToolbar" >
<property name="text" >
<string>Show toolbar on startup</string>
</property>
</widget>
</item>
<item row="3" column="0" >
<spacer name="verticalSpacer_3" >
<property name="orientation" >
@ -380,10 +352,24 @@
</property>
</widget>
</item>
<item row="6" column="0" >
<item row="7" column="0" >
<widget class="QCheckBox" name="showStudyOptions" >
<property name="text" >
<string>Show study options on startup</string>
<string>Show welcome back screen on startup</string>
</property>
</widget>
</item>
<item row="6" column="0" >
<widget class="QCheckBox" name="showTray" >
<property name="text" >
<string>Show tray icon</string>
</property>
</widget>
</item>
<item row="8" column="0" >
<widget class="QCheckBox" name="addZeroSpace" >
<property name="text" >
<string>Add hidden char to text (fixes Thai on OSX)</string>
</property>
</widget>
</item>
@ -437,10 +423,6 @@
<tabstop>alternativeTheme</tabstop>
<tabstop>showTimer</tabstop>
<tabstop>showStudyOptions</tabstop>
<tabstop>showToolbar</tabstop>
<tabstop>showTray</tabstop>
<tabstop>scrollToAnswer</tabstop>
<tabstop>addZeroSpace</tabstop>
<tabstop>buttonBox</tabstop>
</tabstops>
<resources/>