--- a/Cooperation/ChatWidget.ui Mon Nov 12 17:46:11 2012 +0100 +++ b/Cooperation/ChatWidget.ui Mon Nov 12 19:04:11 2012 +0100 @@ -65,25 +65,12 @@ </widget> </item> <item row="1" column="0"> - <widget class="QLineEdit" name="messageEdit"> + <widget class="E5ClearableLineEdit" name="messageEdit"> <property name="toolTip"> <string>Enter the text to send</string> </property> </widget> </item> - <item row="1" column="1"> - <widget class="QToolButton" name="clearMessageButton"> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> - </property> - <property name="toolTip"> - <string>Press to clear the message text</string> - </property> - <property name="text"> - <string>...</string> - </property> - </widget> - </item> <item row="2" column="0" colspan="2"> <widget class="QPushButton" name="sendButton"> <property name="toolTip"> @@ -209,7 +196,7 @@ </widget> </item> <item> - <widget class="QComboBox" name="hostEdit"> + <widget class="E5ClearableComboBox" name="hostEdit"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <horstretch>0</horstretch> @@ -230,19 +217,6 @@ </property> </widget> </item> - <item> - <widget class="QToolButton" name="clearHostButton"> - <property name="focusPolicy"> - <enum>Qt::NoFocus</enum> - </property> - <property name="toolTip"> - <string>Press to clear the host</string> - </property> - <property name="text"> - <string>...</string> - </property> - </widget> - </item> </layout> </item> <item> @@ -350,11 +324,21 @@ </widget> <customwidgets> <customwidget> + <class>E5ClearableLineEdit</class> + <extends>QLineEdit</extends> + <header>E5Gui/E5LineEdit.h</header> + </customwidget> + <customwidget> <class>E5Led</class> <extends>QWidget</extends> <header>E5Gui/E5Led.h</header> <container>1</container> </customwidget> + <customwidget> + <class>E5ClearableComboBox</class> + <extends>QComboBox</extends> + <header>E5Gui/E5ComboBox.h</header> + </customwidget> </customwidgets> <tabstops> <tabstop>serverButton</tabstop> @@ -370,38 +354,5 @@ <tabstop>sendButton</tabstop> </tabstops> <resources/> - <connections> - <connection> - <sender>clearHostButton</sender> - <signal>pressed()</signal> - <receiver>hostEdit</receiver> - <slot>clearEditText()</slot> - <hints> - <hint type="sourcelabel"> - <x>279</x> - <y>651</y> - </hint> - <hint type="destinationlabel"> - <x>221</x> - <y>653</y> - </hint> - </hints> - </connection> - <connection> - <sender>clearMessageButton</sender> - <signal>pressed()</signal> - <receiver>messageEdit</receiver> - <slot>clear()</slot> - <hints> - <hint type="sourcelabel"> - <x>274</x> - <y>488</y> - </hint> - <hint type="destinationlabel"> - <x>241</x> - <y>489</y> - </hint> - </hints> - </connection> - </connections> + <connections/> </ui>