More Plugin list work

This commit is contained in:
Tim Bentley 2009-10-02 13:16:54 +01:00
parent c64584f888
commit 9741d0e10a
2 changed files with 61 additions and 6 deletions

View File

@ -23,9 +23,9 @@ class PluginForm(QtGui.QDialog):
def setupUi(self, PluginForm):
PluginForm.setObjectName(u'PluginForm')
PluginForm.resize(400, 393)
PluginForm.resize(400, 568)
self.PluginViewList = QtGui.QTableWidget(PluginForm)
self.PluginViewList.setGeometry(QtCore.QRect(20, 10, 371, 331))
self.PluginViewList.setGeometry(QtCore.QRect(20, 10, 371, 261))
self.PluginViewList.setObjectName(u'PluginViewList')
self.PluginViewList.setShowGrid(False)
self.PluginViewList.setGridStyle(QtCore.Qt.SolidLine)
@ -38,11 +38,21 @@ class PluginForm(QtGui.QDialog):
item = QtGui.QTableWidgetItem()
self.PluginViewList.setHorizontalHeaderItem(2, item)
self.PluginViewList.horizontalHeader().setVisible(True)
self.PluginViewList.horizontalHeader().setStretchLastSection(True)
self.PluginViewList.verticalHeader().setVisible(False)
self.ButtonBox = QtGui.QDialogButtonBox(PluginForm)
self.ButtonBox.setGeometry(QtCore.QRect(220, 350, 170, 25))
self.ButtonBox.setGeometry(QtCore.QRect(220, 530, 170, 25))
self.ButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Ok)
self.ButtonBox.setObjectName(u'ButtonBox')
self.PluginInfoGroupBox = QtGui.QGroupBox(PluginForm)
self.PluginInfoGroupBox.setGeometry(QtCore.QRect(20, 270, 371, 241))
self.PluginInfoGroupBox.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.PluginInfoGroupBox.setFlat(False)
self.PluginInfoGroupBox.setObjectName("PluginInfoGroupBox")
self.AboutTextLabel = QtGui.QLabel(self.PluginInfoGroupBox)
self.AboutTextLabel.setGeometry(QtCore.QRect(10, 30, 351, 191))
self.AboutTextLabel.setObjectName("AboutTextLabel")
self.retranslateUi(PluginForm)
QtCore.QObject.connect(self.ButtonBox,
@ -53,6 +63,7 @@ class PluginForm(QtGui.QDialog):
def retranslateUi(self, PluginForm):
PluginForm.setWindowTitle(translate(u'PluginForm', u'Plugin list'))
self.PluginInfoGroupBox.setTitle(translate("PluginForm", "Selected Plugin Information"))
self.PluginViewList.horizontalHeaderItem(0).setText(
translate(u'PluginForm', u'Name'))
self.PluginViewList.horizontalHeaderItem(1).setText(

View File

@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>400</width>
<height>393</height>
<height>568</height>
</rect>
</property>
<property name="windowTitle">
@ -19,7 +19,7 @@
<x>20</x>
<y>10</y>
<width>371</width>
<height>331</height>
<height>261</height>
</rect>
</property>
<property name="showGrid">
@ -34,12 +34,24 @@
<attribute name="horizontalHeaderVisible">
<bool>true</bool>
</attribute>
<attribute name="horizontalHeaderCascadingSectionResizes">
<bool>false</bool>
</attribute>
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
<bool>true</bool>
</attribute>
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
</attribute>
<attribute name="verticalHeaderVisible">
<bool>false</bool>
</attribute>
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
</attribute>
<attribute name="horizontalHeaderCascadingSectionResizes">
<bool>false</bool>
</attribute>
<row/>
<column>
<property name="text">
@ -76,7 +88,7 @@
<property name="geometry">
<rect>
<x>220</x>
<y>350</y>
<y>530</y>
<width>170</width>
<height>25</height>
</rect>
@ -85,6 +97,38 @@
<set>QDialogButtonBox::Ok</set>
</property>
</widget>
<widget class="QGroupBox" name="PluginInfoGroupBox">
<property name="geometry">
<rect>
<x>20</x>
<y>270</y>
<width>371</width>
<height>241</height>
</rect>
</property>
<property name="title">
<string>GroupBox</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
<property name="flat">
<bool>false</bool>
</property>
<widget class="QLabel" name="AboutTextLabel">
<property name="geometry">
<rect>
<x>10</x>
<y>30</y>
<width>351</width>
<height>191</height>
</rect>
</property>
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</widget>
</widget>
<resources/>
<connections>