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

View File

@ -2,7 +2,7 @@
# 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
#
# 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'
#
# Created: Sun Feb 15 15:01:20 2015
# Created: Tue Feb 17 11:09:38 2015
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
@ -33,21 +33,25 @@ class Ui_DialogPreferences(object):
self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
self.tabGeneral = QtGui.QWidget()
self.tabGeneral.setObjectName(_fromUtf8("tabGeneral"))
self.formLayout = QtGui.QFormLayout(self.tabGeneral)
self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
self.formLayout.setObjectName(_fromUtf8("formLayout"))
self.verticalLayout_4 = QtGui.QVBoxLayout(self.tabGeneral)
self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
self.checkLoadRecentFile = QtGui.QCheckBox(self.tabGeneral)
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.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.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.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)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
@ -56,10 +60,10 @@ class Ui_DialogPreferences(object):
self.spinMaxResults.setSizePolicy(sizePolicy)
self.spinMaxResults.setMinimum(1)
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.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)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
@ -68,10 +72,8 @@ class Ui_DialogPreferences(object):
self.spinScanLength.setSizePolicy(sizePolicy)
self.spinScanLength.setMinimum(1)
self.spinScanLength.setObjectName(_fromUtf8("spinScanLength"))
self.formLayout.setWidget(5, QtGui.QFormLayout.FieldRole, self.spinScanLength)
self.checkRememberTextContent = QtGui.QCheckBox(self.tabGeneral)
self.checkRememberTextContent.setObjectName(_fromUtf8("checkRememberTextContent"))
self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.checkRememberTextContent)
self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.spinScanLength)
self.verticalLayout_4.addLayout(self.formLayout)
self.tabWidget.addTab(self.tabGeneral, _fromUtf8(""))
self.tabAppearance = QtGui.QWidget()
self.tabAppearance.setObjectName(_fromUtf8("tabAppearance"))
@ -191,10 +193,10 @@ class Ui_DialogPreferences(object):
DialogPreferences.setWindowTitle(_translate("DialogPreferences", "Preferences", None))
self.checkLoadRecentFile.setText(_translate("DialogPreferences", "Load most recent file", 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.label_2.setText(_translate("DialogPreferences", "Max search results", 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.buttonColorFg.setText(_translate("DialogPreferences", "Foreground...", None))
self.buttonColorBg.setText(_translate("DialogPreferences", "Background...", None))

View File

@ -2,7 +2,7 @@
# 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
#
# WARNING! All changes made in this file will be lost!

View File

@ -2,7 +2,7 @@
# 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)
#
# 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'
#
# Created: Sun Feb 15 15:01:20 2015
# Created: Tue Feb 17 11:09:39 2015
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!