mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
disable collapsible children in splitters
This commit is contained in:
parent
9bbf2c1126
commit
69a684f059
4 changed files with 11 additions and 0 deletions
|
@ -43,6 +43,7 @@ class AddCards(QDialog):
|
||||||
self.forceClose = False
|
self.forceClose = False
|
||||||
restoreGeom(self, "add")
|
restoreGeom(self, "add")
|
||||||
restoreSplitter(self.dialog.splitter, "add")
|
restoreSplitter(self.dialog.splitter, "add")
|
||||||
|
self.dialog.splitter.setChildrenCollapsible(False)
|
||||||
self.show()
|
self.show()
|
||||||
addHook('guiReset', self.modelChanged)
|
addHook('guiReset', self.modelChanged)
|
||||||
ui.dialogs.open("AddCards", self)
|
ui.dialogs.open("AddCards", self)
|
||||||
|
|
|
@ -362,6 +362,7 @@ class EditDeck(QMainWindow):
|
||||||
restoreGeom(self, "editor")
|
restoreGeom(self, "editor")
|
||||||
restoreState(self, "editor")
|
restoreState(self, "editor")
|
||||||
restoreSplitter(self.dialog.splitter, "editor")
|
restoreSplitter(self.dialog.splitter, "editor")
|
||||||
|
self.dialog.splitter.setChildrenCollapsible(False)
|
||||||
# toolbar
|
# toolbar
|
||||||
self.dialog.toolBar.setIconSize(QSize(self.config['iconSize'],
|
self.dialog.toolBar.setIconSize(QSize(self.config['iconSize'],
|
||||||
self.config['iconSize']))
|
self.config['iconSize']))
|
||||||
|
|
|
@ -61,6 +61,9 @@
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="childrenCollapsible">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<widget class="QWidget" name="fieldsArea" native="true">
|
<widget class="QWidget" name="fieldsArea" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||||
|
|
|
@ -115,6 +115,9 @@
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="childrenCollapsible">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<widget class="QTableView" name="tableView">
|
<widget class="QTableView" name="tableView">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
|
||||||
|
@ -172,6 +175,9 @@
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="childrenCollapsible">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<widget class="QWidget" name="fieldsArea" native="true">
|
<widget class="QWidget" name="fieldsArea" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||||
|
|
Loading…
Reference in a new issue