remove bottom right splitter

This commit is contained in:
Damien Elmes 2011-04-12 00:34:12 +09:00
parent cef60a1f9c
commit 4b1d377a40
2 changed files with 38 additions and 71 deletions

View file

@ -229,10 +229,8 @@ class Browser(QMainWindow):
self.setUnifiedTitleAndToolBarOnMac(True)
restoreGeom(self, "editor", 38)
restoreState(self, "editor")
restoreSplitter(self.form.splitter, "editor1")
restoreSplitter(self.form.splitter_2, "editor2")
restoreSplitter(self.form.splitter_3, "editor3")
self.form.splitter.setChildrenCollapsible(False)
self.form.splitter_2.setChildrenCollapsible(False)
self.form.splitter_3.setChildrenCollapsible(False)
self.setupSort()
@ -305,7 +303,6 @@ class Browser(QMainWindow):
self.model.reset()
def closeEvent(self, evt):
saveSplitter(self.form.splitter, "editor1")
saveSplitter(self.form.splitter_2, "editor2")
saveSplitter(self.form.splitter_3, "editor3")
self.editor.saveNow()
@ -345,10 +342,10 @@ class Browser(QMainWindow):
self.updateFilterLabel()
self.filterTimer = None
if self.model.cards:
self.form.cardInfoGroup.show()
#self.form.cardInfoGroup.show()
self.form.fieldsArea.show()
else:
self.form.cardInfoGroup.hide()
#self.form.cardInfoGroup.hide()
self.form.fieldsArea.hide()
if not self.focusCard():
if self.model.cards:

View file

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>848</width>
<height>716</height>
<width>436</width>
<height>333</height>
</rect>
</property>
<property name="windowTitle">
@ -160,71 +160,41 @@
<enum>QAbstractItemView::SelectRows</enum>
</property>
</widget>
<widget class="QSplitter" name="splitter">
<property name="minimumSize">
<size>
<width>50</width>
<height>0</height>
</size>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<widget class="QWidget" name="fieldsArea" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>7</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
<widget class="QWidget" name="lowerWidget">
<layout class="QHBoxLayout" name="horizontalLayout2">
<property name="spacing">
<number>0</number>
</property>
<property name="minimumSize">
<size>
<width>50</width>
<height>50</height>
</size>
<property name="margin">
<number>0</number>
</property>
</widget>
<widget class="QGroupBox" name="cardInfoGroup">
<property name="minimumSize">
<size>
<width>50</width>
<height>50</height>
</size>
</property>
<property name="title">
<string>Current Card</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<property name="spacing">
<number>0</number>
</property>
<property name="leftMargin">
<number>4</number>
</property>
<property name="topMargin">
<number>4</number>
</property>
<property name="rightMargin">
<number>6</number>
</property>
<property name="bottomMargin">
<number>4</number>
</property>
<item>
<widget class="QLabel" name="cardLabel">
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<item>
<widget class="QWidget" name="fieldsArea" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
<horstretch>7</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>50</width>
<height>50</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="cardLabel">
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="margin">
<number>6</number>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
@ -239,7 +209,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>848</width>
<width>436</width>
<height>22</height>
</rect>
</property>