fix margins, flashing on open

This commit is contained in:
Damien Elmes 2008-11-28 23:52:48 +09:00
parent 9dd5d97de6
commit 8bc09db5f2
2 changed files with 31 additions and 13 deletions

View file

@ -80,9 +80,6 @@ class AnkiQt(QMainWindow):
self.mainWin.mainStack.addWidget(self.mainWin.mainText)
self.help = ui.help.HelpArea(self.mainWin.helpFrame, self.config, self)
self.mainWin.mainText.pageAction(QWebPage.Reload).setVisible(False)
self.mainWin.mainStack.setCurrentIndex(2)
self.mainWin.buttonStack.show()
self.mainWin.buttonStack.setCurrentIndex(1)
def setupViews(self):
self.bodyView = ui.view.View(self, self.mainWin.mainText,

View file

@ -123,6 +123,21 @@
<enum>QFrame::Raised</enum>
</property>
<layout class="QGridLayout" name="gridLayout" >
<property name="leftMargin" >
<number>4</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>4</number>
</property>
<property name="bottomMargin" >
<number>6</number>
</property>
<property name="spacing" >
<number>0</number>
</property>
<item row="0" column="0" >
<widget class="QStackedWidget" name="mainStack" >
<property name="sizePolicy" >
@ -139,8 +154,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>370</width>
<height>330</height>
<width>378</width>
<height>342</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5" >
@ -162,10 +177,16 @@
<x>0</x>
<y>0</y>
<width>370</width>
<height>336</height>
<height>343</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2" >
<property name="spacing" >
<number>0</number>
</property>
<property name="margin" >
<number>4</number>
</property>
<item>
<widget class="QWidget" native="1" name="fieldsArea" />
</item>
@ -176,7 +197,7 @@
<item row="1" column="0" >
<widget class="QStackedWidget" name="buttonStack" >
<property name="currentIndex" >
<number>1</number>
<number>0</number>
</property>
<widget class="QWidget" name="page1" >
<property name="geometry" >
@ -184,7 +205,7 @@
<x>0</x>
<y>0</y>
<width>370</width>
<height>52</height>
<height>49</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout" >
@ -215,7 +236,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>370</width>
<width>378</width>
<height>50</height>
</rect>
</property>
@ -264,7 +285,7 @@
<item row="0" column="0" >
<widget class="QLabel" name="easeLabel1" >
<property name="text" >
<string>TextLabel</string>
<string/>
</property>
<property name="alignment" >
<set>Qt::AlignCenter</set>
@ -274,7 +295,7 @@
<item row="0" column="1" >
<widget class="QLabel" name="easeLabel2" >
<property name="text" >
<string>TextLabel</string>
<string/>
</property>
<property name="alignment" >
<set>Qt::AlignCenter</set>
@ -284,7 +305,7 @@
<item row="0" column="2" >
<widget class="QLabel" name="easeLabel3" >
<property name="text" >
<string>TextLabel</string>
<string/>
</property>
<property name="alignment" >
<set>Qt::AlignCenter</set>
@ -294,7 +315,7 @@
<item row="0" column="3" >
<widget class="QLabel" name="easeLabel4" >
<property name="text" >
<string>TextLabel</string>
<string/>
</property>
<property name="alignment" >
<set>Qt::AlignCenter</set>