diff --git a/ankiqt/config.py b/ankiqt/config.py index 5cbc321c2..217ff9dc0 100644 --- a/ankiqt/config.py +++ b/ankiqt/config.py @@ -67,6 +67,7 @@ class Config(dict): 'simpleToolbar': True, 'scrollToAnswer': True, 'qaDivider': True, + 'splitQA': True, 'sortIndex': 0, } for (k,v) in fields.items(): diff --git a/ankiqt/ui/preferences.py b/ankiqt/ui/preferences.py index f6fd4f31a..ee8d8e8d5 100644 --- a/ankiqt/ui/preferences.py +++ b/ankiqt/ui/preferences.py @@ -171,6 +171,7 @@ class Preferences(QDialog): self.dialog.simpleToolbar.setChecked(self.config['simpleToolbar']) self.dialog.scrollToAnswer.setChecked(self.config['scrollToAnswer']) self.dialog.showDivider.setChecked(self.config['qaDivider']) + self.dialog.splitQA.setChecked(self.config['splitQA']) self.dialog.toolbarIconSize.setText(str(self.config['iconSize'])) def updateAdvanced(self): @@ -187,6 +188,7 @@ class Preferences(QDialog): self.config['simpleToolbar'] = self.dialog.simpleToolbar.isChecked() self.config['scrollToAnswer'] = self.dialog.scrollToAnswer.isChecked() self.config['qaDivider'] = self.dialog.showDivider.isChecked() + self.config['splitQA'] = self.dialog.splitQA.isChecked() i = 32 try: i = int(self.dialog.toolbarIconSize.text()) diff --git a/ankiqt/ui/view.py b/ankiqt/ui/view.py index 5101ddc42..6b6b9b7f3 100644 --- a/ankiqt/ui/view.py +++ b/ankiqt/ui/view.py @@ -119,6 +119,8 @@ class View(object): ########################################################################## def center(self, str, height=45): + if not self.main.config['splitQA']: + return str return '''
diff --git a/designer/preferences.ui b/designer/preferences.ui index 538357f5c..4186e6d3d 100644 --- a/designer/preferences.ui +++ b/designer/preferences.ui @@ -6,7 +6,7 @@ 0 0 322 - 417 + 438 @@ -16,7 +16,7 @@ - 0 + 2 @@ -362,7 +362,7 @@ 0 0 306 - 351 + 372 @@ -448,6 +448,13 @@ + + + + Put space between question and answer + + +