mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-22 08:50:24 +00:00
Improved treeview layout
This commit is contained in:
parent
4ded3a413f
commit
b106d4cc03
3 changed files with 25 additions and 5 deletions
|
|
@ -78,8 +78,6 @@ class LinkCheckerMain (QtGui.QMainWindow, Ui_MainWindow):
|
|||
#self.controlButton.setIcon(icon)
|
||||
|
||||
def init_treewidget (self):
|
||||
from ..logger import Fields
|
||||
self.treeWidget.setHeaderLabels((u"#", Fields["url"], Fields["name"], Fields["result"]))
|
||||
self.treeWidget.setColumnHidden(0, True)
|
||||
self.treeWidget.setColumnWidth(1, 200)
|
||||
self.treeWidget.setColumnWidth(2, 200)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Form implementation generated from reading ui file 'ui/main.ui'
|
||||
#
|
||||
# Created: Wed Feb 25 02:11:29 2009
|
||||
# Created: Wed Feb 25 02:15:51 2009
|
||||
# by: PyQt4 UI code generator 4.4.4
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
|
@ -51,6 +51,7 @@ 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.setAlternatingRowColors(True)
|
||||
self.treeWidget.setUniformRowHeights(True)
|
||||
self.treeWidget.setItemsExpandable(False)
|
||||
self.treeWidget.setExpandsOnDoubleClick(False)
|
||||
|
|
@ -90,7 +91,10 @@ class Ui_MainWindow(object):
|
|||
self.optionsButton.setText(QtGui.QApplication.translate("MainWindow", "Options...", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.controlButton.setToolTip(QtGui.QApplication.translate("MainWindow", "Start checking the given URL.", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.controlButton.setText(QtGui.QApplication.translate("MainWindow", "Start", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.treeWidget.headerItem().setText(0, QtGui.QApplication.translate("MainWindow", "1", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.treeWidget.headerItem().setText(0, QtGui.QApplication.translate("MainWindow", "#", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.treeWidget.headerItem().setText(1, QtGui.QApplication.translate("MainWindow", "Url", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.treeWidget.headerItem().setText(2, QtGui.QApplication.translate("MainWindow", "Name", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.treeWidget.headerItem().setText(3, QtGui.QApplication.translate("MainWindow", "Result", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.menuLinkChecka.setTitle(QtGui.QApplication.translate("MainWindow", "File", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.menuHelp.setTitle(QtGui.QApplication.translate("MainWindow", "Help", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.actionQuit.setText(QtGui.QApplication.translate("MainWindow", "Quit", None, QtGui.QApplication.UnicodeUTF8))
|
||||
|
|
|
|||
|
|
@ -90,6 +90,9 @@
|
|||
</item>
|
||||
<item row="1" column="0" colspan="2" >
|
||||
<widget class="QTreeWidget" name="treeWidget" >
|
||||
<property name="alternatingRowColors" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="uniformRowHeights" >
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
|
|
@ -101,7 +104,22 @@
|
|||
</property>
|
||||
<column>
|
||||
<property name="text" >
|
||||
<string>1</string>
|
||||
<string>#</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text" >
|
||||
<string>Url</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text" >
|
||||
<string>Name</string>
|
||||
</property>
|
||||
</column>
|
||||
<column>
|
||||
<property name="text" >
|
||||
<string>Result</string>
|
||||
</property>
|
||||
</column>
|
||||
</widget>
|
||||
|
|
|
|||
Loading…
Reference in a new issue