diff --git a/ankiqt/ui/clayout.py b/ankiqt/ui/clayout.py
index 77ae08f4c..88cc9e6dd 100644
--- a/ankiqt/ui/clayout.py
+++ b/ankiqt/ui/clayout.py
@@ -12,7 +12,8 @@ from anki.facts import *
from anki.fonts import toCanonicalFont
from anki.cards import Card
from anki.sound import playFromText, clearAudioQueue
-from ankiqt.ui.utils import saveGeom, restoreGeom, getBase, mungeQA
+from ankiqt.ui.utils import saveGeom, restoreGeom, getBase, mungeQA, \
+ saveSplitter, restoreSplitter
from anki.hooks import runFilter
from ankiqt import ui
@@ -71,6 +72,7 @@ class CardLayout(QDialog):
return
self.form = ankiqt.forms.clayout.Ui_Dialog()
self.form.setupUi(self)
+ restoreSplitter(self.form.splitter, "clayout")
if type == 0:
self.form.templateType.setText(
_("Templates used by fact:"))
@@ -318,6 +320,7 @@ order by n""", id=card.id)
self.mw.reset()
self.deck.finishProgress()
saveGeom(self, "CardLayout")
+ saveSplitter(self.form.splitter, "clayout")
QDialog.reject(self)
def onHelp(self):
diff --git a/designer/clayout.ui b/designer/clayout.ui
index aa049ffe1..6d2bf0b60 100644
--- a/designer/clayout.ui
+++ b/designer/clayout.ui
@@ -6,537 +6,545 @@
0
0
- 619
+ 407
482
Card Layout
-
+
-
-
-
-
-
-
-
- 2
- 0
-
-
-
- 0
-
-
-
- Card Templates
-
-
-
-
-
-
- 0
-
-
- 6
-
-
-
-
-
-
- 2
- 0
-
+
+
+ Qt::Horizontal
+
+
+ false
+
+
+
+
-
+
+
+
+ 2
+ 0
+
+
+
+ 0
+
+
+
+ Card Templates
+
+
+
-
+
+
+ 0
-
-
- 50
- 0
-
+
+ 6
-
- Qt::ScrollBarAlwaysOff
-
-
- true
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
-
- 50
- 0
-
-
-
- Qt::ScrollBarAlwaysOff
-
-
- true
-
-
- false
-
-
-
- -
-
-
-
-
+
-
+
-
+
+ 2
+ 0
+
+
+
+
+ 50
+ 0
+
+
+
+ Qt::ScrollBarAlwaysOff
+
+
+ true
+
+
+
+ -
+
+
+
0
0
-
-
- -
-
-
- &Edit
-
-
-
-
-
- -
-
-
-
-
-
- Question
-
-
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
-
-
- true
-
-
-
- -
-
-
- Flip
-
-
-
- :/icons/multisynk.png:/icons/multisynk.png
-
-
-
- -
-
-
- Answer
-
-
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
-
-
- true
-
-
-
-
-
- -
-
-
- Alignment
-
-
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
-
-
-
- -
-
-
- -
-
-
- Background
-
-
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
-
-
-
- -
-
-
-
-
-
- false
-
-
-
- -
-
-
-
-
-
-
-
-
- -
-
-
- -
-
-
- Hide the question when showing answer
-
-
-
- -
-
-
- Allow the answer to be blank
-
-
-
- -
-
-
- Qt::Vertical
-
-
-
- 20
- 40
-
-
-
-
-
-
-
-
- Fields
-
-
- -
-
-
-
-
-
-
- 0
- 0
-
-
-
-
- 50
- 60
-
-
-
-
- -
-
-
-
-
-
- &Add
-
-
- false
-
-
-
- -
-
-
- Move selected field up
-
-
- &Up
-
-
- false
-
-
-
- -
-
-
- Move selected field down
-
-
- Dow&n
-
-
- false
-
-
-
- -
-
-
- &Delete
-
-
- false
-
-
-
- -
-
-
- Qt::Vertical
-
-
+
- 20
- 40
+ 50
+ 0
-
-
-
-
-
-
- -
-
-
- 0
-
-
- 6
-
-
-
-
-
- -
-
-
- Name
-
-
- Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
-
-
-
- -
-
-
- Font
-
-
-
- -
-
-
- Size
-
-
-
- -
-
-
- Color
-
-
-
- -
-
-
-
- 0
- 25
-
-
-
-
- -
-
-
- true
-
-
-
-
-
- false
-
-
-
- -
-
-
-
-
-
- Reviewing
+
+ Qt::ScrollBarAlwaysOff
+
+
+ true
+
+
+ false
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ -
+
+
+ &Edit
+
+
+
+
+
+ -
+
+
-
+
+
+ Question
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+ true
+
+
+
+ -
+
+
+ Flip
+
+
+
+ :/icons/multisynk.png:/icons/multisynk.png
+
+
+
+ -
+
+
+ Answer
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+ true
+
+
+
+
+
+ -
+
+
+ Alignment
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+ -
+
+
+ Background
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
+
+
+
+ -
+
+
+
+
+
+ false
+
+
+
+ -
+
+
+
+
+
+
+
+
+ -
+
+
+ -
+
+
+ Hide the question when showing answer
+
+
+
+ -
+
+
+ Allow the answer to be blank
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+
+
+
+
+ Fields
+
+
+ -
+
+
-
+
+
+
+ 0
+ 0
+
+
+
+
+ 50
+ 60
+
+
+
+
+ -
+
+
-
+
+
+ &Add
+
+
+ false
+
+
+
+ -
+
+
+ Move selected field up
+
+
+ &Up
+
+
+ false
+
+
+
+ -
+
+
+ Move selected field down
+
+
+ Dow&n
+
+
+ false
+
+
+
+ -
+
+
+ &Delete
+
+
+ false
+
+
+
+ -
+
+
+ Qt::Vertical
+
+
+
+ 20
+ 40
+
+
+
+
+
+
+
+
+ -
+
+
+ 0
+
+
+ 6
+
-
-
-
- 5
-
-
- 300
-
-
+
- -
-
+
-
+
- Editing
+ Name
+
+
+ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter
- -
-
-
- 5
-
-
- 300
+
-
+
+
+ Font
- -
-
-
- Qt::Horizontal
+
-
+
+
+ Size
-
+
+
+ -
+
+
+ Color
+
+
+
+ -
+
+
- 1
- 20
+ 0
+ 25
-
+
+
+ -
+
+
+ true
+
+
+
+
+
+ false
+
+
+
+ -
+
+
-
+
+
+ Reviewing
+
+
+
+ -
+
+
+ 5
+
+
+ 300
+
+
+
+ -
+
+
+ Editing
+
+
+
+ -
+
+
+ 5
+
+
+ 300
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 1
+ 20
+
+
+
+
+
+
+ -
+
+
+ Options
+
+
+
+ -
+
+
+ Reverse text direction (RTL)
+
+
+
+ -
+
+
+ Sort as numbers in browser
+
+
+
+ -
+
+
+ Prevent empty entries
+
+
+
+ -
+
+
+ Prevent duplicates
+
+
+
+ -
+
+
+ Preserve whitespace
+
+
- -
-
-
- Options
+
-
+
+
+ Qt::Vertical
-
-
- -
-
-
- Reverse text direction (RTL)
+
+
+ 20
+ 40
+
-
-
- -
-
-
- Sort as numbers in browser
-
-
-
- -
-
-
- Prevent empty entries
-
-
-
- -
-
-
- Prevent duplicates
-
-
-
- -
-
-
- Preserve whitespace
-
-
+
-
- -
-
-
- Qt::Vertical
-
-
-
- 20
- 40
-
-
-
-
-
-
-
-
- -
-
-
- Qt::Horizontal
-
-
- QDialogButtonBox::Close|QDialogButtonBox::Help
-
-
-
-
-
- -
-
-
-
- 1
- 0
-
-
-
- Preview
-
-
-
- 6
+
+
+
+ -
+
+
+ Qt::Horizontal
+
+
+ QDialogButtonBox::Close|QDialogButtonBox::Help
+
+
+
+
+
+
+
+
+ 1
+ 0
+
-
- 6
+
+ Preview
- -
-
-
-
- 1
- 0
-
-
-
- Qt::NoFocus
-
-
-
- about:blank
-
-
-
-
-
+
+
+ 6
+
+
+ 6
+
+ -
+
+
+
+ 1
+ 0
+
+
+
+ Qt::NoFocus
+
+
+
+ about:blank
+
+
+
+
+
+