Improved treeview layout

This commit is contained in:
Bastian Kleineidam 2009-02-25 02:12:55 +01:00
parent 77fa70ac43
commit 4ded3a413f
3 changed files with 13 additions and 2 deletions

View file

@ -83,7 +83,6 @@ class LinkCheckerMain (QtGui.QMainWindow, Ui_MainWindow):
self.treeWidget.setColumnHidden(0, True)
self.treeWidget.setColumnWidth(1, 200)
self.treeWidget.setColumnWidth(2, 200)
self.treeWidget.setUniformRowHeights(True)
self.treeWidget.setSortingEnabled(True)
self.treeWidget.sortByColumn(0, QtCore.Qt.AscendingOrder)
self.num = 0

View file

@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'ui/main.ui'
#
# Created: Tue Feb 24 23:34:48 2009
# Created: Wed Feb 25 02:11:29 2009
# by: PyQt4 UI code generator 4.4.4
#
# WARNING! All changes made in this file will be lost!
@ -51,6 +51,9 @@ class Ui_MainWindow(object):
self.horizontalLayout_3.addWidget(self.controlButton)
self.gridLayout.addLayout(self.horizontalLayout_3, 0, 1, 1, 1)
self.treeWidget = QtGui.QTreeWidget(self.centralwidget)
self.treeWidget.setUniformRowHeights(True)
self.treeWidget.setItemsExpandable(False)
self.treeWidget.setExpandsOnDoubleClick(False)
self.treeWidget.setObjectName("treeWidget")
self.gridLayout.addWidget(self.treeWidget, 1, 0, 1, 2)
MainWindow.setCentralWidget(self.centralwidget)

View file

@ -90,6 +90,15 @@
</item>
<item row="1" column="0" colspan="2" >
<widget class="QTreeWidget" name="treeWidget" >
<property name="uniformRowHeights" >
<bool>true</bool>
</property>
<property name="itemsExpandable" >
<bool>false</bool>
</property>
<property name="expandsOnDoubleClick" >
<bool>false</bool>
</property>
<column>
<property name="text" >
<string>1</string>