mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -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.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())
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue