1

Fixing layout

Former-commit-id: 3e010ebfb96d43c92cf344186038e759df4932f2
This commit is contained in:
Alex Yatskov 2015-02-17 11:10:43 +09:00
parent 46be9cba8a
commit 55b565f9fc
6 changed files with 75 additions and 72 deletions

View File

@ -23,77 +23,78 @@
<attribute name="title"> <attribute name="title">
<string>General</string> <string>General</string>
</attribute> </attribute>
<layout class="QFormLayout" name="formLayout"> <layout class="QVBoxLayout" name="verticalLayout_4">
<property name="fieldGrowthPolicy"> <item>
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
</property>
<item row="0" column="0" colspan="2">
<widget class="QCheckBox" name="checkLoadRecentFile"> <widget class="QCheckBox" name="checkLoadRecentFile">
<property name="text"> <property name="text">
<string>Load most recent file</string> <string>Load most recent file</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0" colspan="2"> <item>
<widget class="QCheckBox" name="checkStripReadings"> <widget class="QCheckBox" name="checkStripReadings">
<property name="text"> <property name="text">
<string>Strip readings from files</string> <string>Strip readings from files</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0" colspan="2"> <item>
<widget class="QCheckBox" name="checkRememberTextContent">
<property name="text">
<string>Remember text content</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkCheckForUpdates"> <widget class="QCheckBox" name="checkCheckForUpdates">
<property name="text"> <property name="text">
<string>Check for updates</string> <string>Check for updates</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="0"> <item>
<widget class="QLabel" name="label_2"> <layout class="QFormLayout" name="formLayout">
<property name="text"> <item row="0" column="0">
<string>Max search results</string> <widget class="QLabel" name="label_2">
</property> <property name="text">
</widget> <string>Max search results</string>
</item> </property>
<item row="4" column="1"> </widget>
<widget class="QSpinBox" name="spinMaxResults"> </item>
<property name="sizePolicy"> <item row="0" column="1">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <widget class="QSpinBox" name="spinMaxResults">
<horstretch>0</horstretch> <property name="sizePolicy">
<verstretch>0</verstretch> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
</sizepolicy> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
<property name="minimum"> </sizepolicy>
<number>1</number> </property>
</property> <property name="minimum">
</widget> <number>1</number>
</item> </property>
<item row="5" column="0"> </widget>
<widget class="QLabel" name="label_14"> </item>
<property name="text"> <item row="1" column="0">
<string>Text scan length</string> <widget class="QLabel" name="label_14">
</property> <property name="text">
</widget> <string>Text scan length</string>
</item> </property>
<item row="5" column="1"> </widget>
<widget class="QSpinBox" name="spinScanLength"> </item>
<property name="sizePolicy"> <item row="1" column="1">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <widget class="QSpinBox" name="spinScanLength">
<horstretch>0</horstretch> <property name="sizePolicy">
<verstretch>0</verstretch> <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
</sizepolicy> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
<property name="minimum"> </sizepolicy>
<number>1</number> </property>
</property> <property name="minimum">
</widget> <number>1</number>
</item> </property>
<item row="3" column="0"> </widget>
<widget class="QCheckBox" name="checkRememberTextContent"> </item>
<property name="text"> </layout>
<string>Remember text content</string>
</property>
</widget>
</item> </item>
</layout> </layout>
</widget> </widget>

View File

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'ui/about.ui' # Form implementation generated from reading ui file 'ui/about.ui'
# #
# Created: Sun Feb 15 15:01:20 2015 # Created: Tue Feb 17 11:09:38 2015
# by: PyQt4 UI code generator 4.10.4 # by: PyQt4 UI code generator 4.10.4
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!

View File

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'ui/preferences.ui' # Form implementation generated from reading ui file 'ui/preferences.ui'
# #
# Created: Sun Feb 15 15:01:20 2015 # Created: Tue Feb 17 11:09:38 2015
# by: PyQt4 UI code generator 4.10.4 # by: PyQt4 UI code generator 4.10.4
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!
@ -33,21 +33,25 @@ class Ui_DialogPreferences(object):
self.tabWidget.setObjectName(_fromUtf8("tabWidget")) self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.tabGeneral = QtGui.QWidget() self.tabGeneral = QtGui.QWidget()
self.tabGeneral.setObjectName(_fromUtf8("tabGeneral")) self.tabGeneral.setObjectName(_fromUtf8("tabGeneral"))
self.formLayout = QtGui.QFormLayout(self.tabGeneral) self.verticalLayout_4 = QtGui.QVBoxLayout(self.tabGeneral)
self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
self.formLayout.setObjectName(_fromUtf8("formLayout"))
self.checkLoadRecentFile = QtGui.QCheckBox(self.tabGeneral) self.checkLoadRecentFile = QtGui.QCheckBox(self.tabGeneral)
self.checkLoadRecentFile.setObjectName(_fromUtf8("checkLoadRecentFile")) self.checkLoadRecentFile.setObjectName(_fromUtf8("checkLoadRecentFile"))
self.formLayout.setWidget(0, QtGui.QFormLayout.SpanningRole, self.checkLoadRecentFile) self.verticalLayout_4.addWidget(self.checkLoadRecentFile)
self.checkStripReadings = QtGui.QCheckBox(self.tabGeneral) self.checkStripReadings = QtGui.QCheckBox(self.tabGeneral)
self.checkStripReadings.setObjectName(_fromUtf8("checkStripReadings")) self.checkStripReadings.setObjectName(_fromUtf8("checkStripReadings"))
self.formLayout.setWidget(1, QtGui.QFormLayout.SpanningRole, self.checkStripReadings) self.verticalLayout_4.addWidget(self.checkStripReadings)
self.checkRememberTextContent = QtGui.QCheckBox(self.tabGeneral)
self.checkRememberTextContent.setObjectName(_fromUtf8("checkRememberTextContent"))
self.verticalLayout_4.addWidget(self.checkRememberTextContent)
self.checkCheckForUpdates = QtGui.QCheckBox(self.tabGeneral) self.checkCheckForUpdates = QtGui.QCheckBox(self.tabGeneral)
self.checkCheckForUpdates.setObjectName(_fromUtf8("checkCheckForUpdates")) self.checkCheckForUpdates.setObjectName(_fromUtf8("checkCheckForUpdates"))
self.formLayout.setWidget(2, QtGui.QFormLayout.SpanningRole, self.checkCheckForUpdates) self.verticalLayout_4.addWidget(self.checkCheckForUpdates)
self.formLayout = QtGui.QFormLayout()
self.formLayout.setObjectName(_fromUtf8("formLayout"))
self.label_2 = QtGui.QLabel(self.tabGeneral) self.label_2 = QtGui.QLabel(self.tabGeneral)
self.label_2.setObjectName(_fromUtf8("label_2")) self.label_2.setObjectName(_fromUtf8("label_2"))
self.formLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.label_2) self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.label_2)
self.spinMaxResults = QtGui.QSpinBox(self.tabGeneral) self.spinMaxResults = QtGui.QSpinBox(self.tabGeneral)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0) sizePolicy.setHorizontalStretch(0)
@ -56,10 +60,10 @@ class Ui_DialogPreferences(object):
self.spinMaxResults.setSizePolicy(sizePolicy) self.spinMaxResults.setSizePolicy(sizePolicy)
self.spinMaxResults.setMinimum(1) self.spinMaxResults.setMinimum(1)
self.spinMaxResults.setObjectName(_fromUtf8("spinMaxResults")) self.spinMaxResults.setObjectName(_fromUtf8("spinMaxResults"))
self.formLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.spinMaxResults) self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.spinMaxResults)
self.label_14 = QtGui.QLabel(self.tabGeneral) self.label_14 = QtGui.QLabel(self.tabGeneral)
self.label_14.setObjectName(_fromUtf8("label_14")) self.label_14.setObjectName(_fromUtf8("label_14"))
self.formLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.label_14) self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.label_14)
self.spinScanLength = QtGui.QSpinBox(self.tabGeneral) self.spinScanLength = QtGui.QSpinBox(self.tabGeneral)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0) sizePolicy.setHorizontalStretch(0)
@ -68,10 +72,8 @@ class Ui_DialogPreferences(object):
self.spinScanLength.setSizePolicy(sizePolicy) self.spinScanLength.setSizePolicy(sizePolicy)
self.spinScanLength.setMinimum(1) self.spinScanLength.setMinimum(1)
self.spinScanLength.setObjectName(_fromUtf8("spinScanLength")) self.spinScanLength.setObjectName(_fromUtf8("spinScanLength"))
self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole, self.spinScanLength) self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.spinScanLength)
self.checkRememberTextContent = QtGui.QCheckBox(self.tabGeneral) self.verticalLayout_4.addLayout(self.formLayout)
self.checkRememberTextContent.setObjectName(_fromUtf8("checkRememberTextContent"))
self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.checkRememberTextContent)
self.tabWidget.addTab(self.tabGeneral, _fromUtf8("")) self.tabWidget.addTab(self.tabGeneral, _fromUtf8(""))
self.tabAppearance = QtGui.QWidget() self.tabAppearance = QtGui.QWidget()
self.tabAppearance.setObjectName(_fromUtf8("tabAppearance")) self.tabAppearance.setObjectName(_fromUtf8("tabAppearance"))
@ -191,10 +193,10 @@ class Ui_DialogPreferences(object):
DialogPreferences.setWindowTitle(_translate("DialogPreferences", "Preferences", None)) DialogPreferences.setWindowTitle(_translate("DialogPreferences", "Preferences", None))
self.checkLoadRecentFile.setText(_translate("DialogPreferences", "Load most recent file", None)) self.checkLoadRecentFile.setText(_translate("DialogPreferences", "Load most recent file", None))
self.checkStripReadings.setText(_translate("DialogPreferences", "Strip readings from files", None)) self.checkStripReadings.setText(_translate("DialogPreferences", "Strip readings from files", None))
self.checkRememberTextContent.setText(_translate("DialogPreferences", "Remember text content", None))
self.checkCheckForUpdates.setText(_translate("DialogPreferences", "Check for updates", None)) self.checkCheckForUpdates.setText(_translate("DialogPreferences", "Check for updates", None))
self.label_2.setText(_translate("DialogPreferences", "Max search results", None)) self.label_2.setText(_translate("DialogPreferences", "Max search results", None))
self.label_14.setText(_translate("DialogPreferences", "Text scan length", None)) self.label_14.setText(_translate("DialogPreferences", "Text scan length", None))
self.checkRememberTextContent.setText(_translate("DialogPreferences", "Remember text content", None))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabGeneral), _translate("DialogPreferences", "General", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabGeneral), _translate("DialogPreferences", "General", None))
self.buttonColorFg.setText(_translate("DialogPreferences", "Foreground...", None)) self.buttonColorFg.setText(_translate("DialogPreferences", "Foreground...", None))
self.buttonColorBg.setText(_translate("DialogPreferences", "Background...", None)) self.buttonColorBg.setText(_translate("DialogPreferences", "Background...", None))

View File

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'ui/reader.ui' # Form implementation generated from reading ui file 'ui/reader.ui'
# #
# Created: Sun Feb 15 15:01:20 2015 # Created: Tue Feb 17 11:09:39 2015
# by: PyQt4 UI code generator 4.10.4 # by: PyQt4 UI code generator 4.10.4
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!

View File

@ -2,7 +2,7 @@
# Resource object code # Resource object code
# #
# Created: Sun Feb 15 15:01:20 2015 # Created: Tue Feb 17 11:09:39 2015
# by: The Resource Compiler for PyQt (Qt v4.8.6) # by: The Resource Compiler for PyQt (Qt v4.8.6)
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!

View File

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'ui/updates.ui' # Form implementation generated from reading ui file 'ui/updates.ui'
# #
# Created: Sun Feb 15 15:01:20 2015 # Created: Tue Feb 17 11:09:39 2015
# by: PyQt4 UI code generator 4.10.4 # by: PyQt4 UI code generator 4.10.4
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!