diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-10 07:55:46 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-10-10 07:55:46 +0000 |
| commit | 9013df59ae279eac03d09a0cc516e50022db63c4 (patch) | |
| tree | d7d4bd19ce3be2ae2f7ea8774aee3102a5fa8721 /examples/GuiClient | |
| parent | 1ce32505f8357331269c29dea8c9fee3a663e9b6 (diff) | |
| download | qxmpp-9013df59ae279eac03d09a0cc516e50022db63c4.tar.gz | |
implement clear button
Diffstat (limited to 'examples/GuiClient')
| -rw-r--r-- | examples/GuiClient/xmlConsoleDialog.ui | 70 |
1 files changed, 58 insertions, 12 deletions
diff --git a/examples/GuiClient/xmlConsoleDialog.ui b/examples/GuiClient/xmlConsoleDialog.ui index a4586d7e..06dfccc3 100644 --- a/examples/GuiClient/xmlConsoleDialog.ui +++ b/examples/GuiClient/xmlConsoleDialog.ui @@ -18,14 +18,44 @@ <widget class="QTextBrowser" name="textBrowser"/>
</item>
<item>
- <widget class="QDialogButtonBox" name="buttonBox">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="standardButtons">
- <set>QDialogButtonBox::Cancel</set>
- </property>
- </widget>
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <spacer name="horizontalSpacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QPushButton" name="pushButton_clear">
+ <property name="text">
+ <string>Clear</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QDialogButtonBox" name="buttonBox">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="standardButtons">
+ <set>QDialogButtonBox::Cancel</set>
+ </property>
+ </widget>
+ </item>
+ </layout>
</item>
</layout>
</widget>
@@ -38,8 +68,8 @@ <slot>accept()</slot>
<hints>
<hint type="sourcelabel">
- <x>248</x>
- <y>254</y>
+ <x>389</x>
+ <y>289</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
@@ -54,8 +84,8 @@ <slot>reject()</slot>
<hints>
<hint type="sourcelabel">
- <x>316</x>
- <y>260</y>
+ <x>389</x>
+ <y>289</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
@@ -63,5 +93,21 @@ </hint>
</hints>
</connection>
+ <connection>
+ <sender>pushButton_clear</sender>
+ <signal>clicked()</signal>
+ <receiver>textBrowser</receiver>
+ <slot>clear()</slot>
+ <hints>
+ <hint type="sourcelabel">
+ <x>257</x>
+ <y>283</y>
+ </hint>
+ <hint type="destinationlabel">
+ <x>178</x>
+ <y>202</y>
+ </hint>
+ </hints>
+ </connection>
</connections>
</ui>
|
