mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
make qa divider configurable
This commit is contained in:
parent
cbe822cd66
commit
14b0f16a46
2 changed files with 9 additions and 0 deletions
|
@ -170,6 +170,7 @@ class Preferences(QDialog):
|
|||
self.dialog.showTimer.setChecked(self.config['showTimer'])
|
||||
self.dialog.simpleToolbar.setChecked(self.config['simpleToolbar'])
|
||||
self.dialog.scrollToAnswer.setChecked(self.config['scrollToAnswer'])
|
||||
self.dialog.showDivider.setChecked(self.config['qaDivider'])
|
||||
self.dialog.toolbarIconSize.setText(str(self.config['iconSize']))
|
||||
|
||||
def updateAdvanced(self):
|
||||
|
@ -185,6 +186,7 @@ class Preferences(QDialog):
|
|||
self.config['suppressEstimates'] = self.dialog.suppressEstimates.isChecked()
|
||||
self.config['simpleToolbar'] = self.dialog.simpleToolbar.isChecked()
|
||||
self.config['scrollToAnswer'] = self.dialog.scrollToAnswer.isChecked()
|
||||
self.config['qaDivider'] = self.dialog.showDivider.isChecked()
|
||||
i = 32
|
||||
try:
|
||||
i = int(self.dialog.toolbarIconSize.text())
|
||||
|
|
|
@ -441,6 +441,13 @@
|
|||
</property>
|
||||
</widget>
|
||||
</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>
|
||||
</item>
|
||||
<item>
|
||||
|
|
Loading…
Reference in a new issue