make qa divider configurable

This commit is contained in:
Damien Elmes 2008-12-05 14:43:50 +09:00
parent cbe822cd66
commit 14b0f16a46
2 changed files with 9 additions and 0 deletions

View file

@ -170,6 +170,7 @@ class Preferences(QDialog):
self.dialog.showTimer.setChecked(self.config['showTimer']) self.dialog.showTimer.setChecked(self.config['showTimer'])
self.dialog.simpleToolbar.setChecked(self.config['simpleToolbar']) self.dialog.simpleToolbar.setChecked(self.config['simpleToolbar'])
self.dialog.scrollToAnswer.setChecked(self.config['scrollToAnswer']) self.dialog.scrollToAnswer.setChecked(self.config['scrollToAnswer'])
self.dialog.showDivider.setChecked(self.config['qaDivider'])
self.dialog.toolbarIconSize.setText(str(self.config['iconSize'])) self.dialog.toolbarIconSize.setText(str(self.config['iconSize']))
def updateAdvanced(self): def updateAdvanced(self):
@ -185,6 +186,7 @@ class Preferences(QDialog):
self.config['suppressEstimates'] = self.dialog.suppressEstimates.isChecked() self.config['suppressEstimates'] = self.dialog.suppressEstimates.isChecked()
self.config['simpleToolbar'] = self.dialog.simpleToolbar.isChecked() self.config['simpleToolbar'] = self.dialog.simpleToolbar.isChecked()
self.config['scrollToAnswer'] = self.dialog.scrollToAnswer.isChecked() self.config['scrollToAnswer'] = self.dialog.scrollToAnswer.isChecked()
self.config['qaDivider'] = self.dialog.showDivider.isChecked()
i = 32 i = 32
try: try:
i = int(self.dialog.toolbarIconSize.text()) i = int(self.dialog.toolbarIconSize.text())

View file

@ -441,6 +441,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="10" column="0" >
<widget class="QCheckBox" name="showDivider" >
<property name="text" >
<string>Show divider between question and answer</string>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
<item> <item>