2 * Tieto Open Communicator - Client for the Telepathy communications framework.
3 * Copyright (c) 2010, Tieto Corporation
6 * Redistribution and use in source and binary forms, with or without modification,
7 * are permitted provided that the following conditions are met:
9 * Redistributions of source code must retain the above copyright notice,
10 * this list of conditions and the following disclaimer.
11 * Redistributions in binary form must reproduce the above copyright notice,
12 * this list of conditions and the following disclaimer in the documentation
13 * and/or other materials provided with the distribution.
14 * Neither the name of the Tieto Corporation nor the names of its contributors
15 * may be used to endorse or promote products derived from this software without
16 * specific prior written permission.
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
20 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21 * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
22 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 <class>TocChatWidgetClass</class>
33 <widget class="QWidget" name="TocChatWidgetClass" >
34 <property name="geometry" >
42 <property name="windowTitle" >
45 <property name="styleSheet" >
46 <string notr="true" />
48 <layout class="QVBoxLayout" name="verticalLayout" >
50 <widget class="QFrame" name="chatFrame" >
51 <property name="frameShape" >
52 <enum>QFrame::StyledPanel</enum>
54 <property name="frameShadow" >
55 <enum>QFrame::Raised</enum>
57 <layout class="QVBoxLayout" name="verticalLayout_2" >
58 <property name="spacing" >
62 <widget class="QFrame" name="frame" >
63 <property name="styleSheet" >
64 <string notr="true" />
66 <property name="frameShape" >
67 <enum>QFrame::StyledPanel</enum>
69 <property name="frameShadow" >
70 <enum>QFrame::Plain</enum>
72 <layout class="QGridLayout" name="gridLayout" >
73 <property name="margin" >
76 <property name="verticalSpacing" >
79 <item row="0" column="0" >
80 <widget class="QTextEdit" name="chatTextEdit" >
81 <property name="sizePolicy" >
82 <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
83 <horstretch>0</horstretch>
84 <verstretch>0</verstretch>
87 <property name="styleSheet" >
88 <string notr="true" >QTextEdit {
89 background-color: none;
92 <property name="frameShape" >
93 <enum>QFrame::Box</enum>
95 <property name="frameShadow" >
96 <enum>QFrame::Sunken</enum>
98 <property name="lineWidth" >
101 <property name="horizontalScrollBarPolicy" >
102 <enum>Qt::ScrollBarAlwaysOff</enum>
104 <property name="readOnly" >
113 <layout class="QHBoxLayout" name="horizontalLayout_2" >
114 <property name="spacing" >
117 <property name="leftMargin" >
120 <property name="topMargin" >
124 <widget class="QPushButton" name="smileButton" >
125 <property name="font" >
127 <pointsize>14</pointsize>
132 <property name="styleSheet" >
133 <string notr="true" >QPushButton{
141 <property name="text" >
142 <string>Smile</string>
147 <widget class="QTextEdit" name="messageTextEdit" >
148 <property name="sizePolicy" >
149 <sizepolicy vsizetype="MinimumExpanding" hsizetype="MinimumExpanding" >
150 <horstretch>0</horstretch>
151 <verstretch>0</verstretch>
154 <property name="maximumSize" >
156 <width>16777215</width>
160 <property name="styleSheet" >
161 <string notr="true" >QTextEdit {
162 background-color: none;
165 <property name="frameShape" >
166 <enum>QFrame::Box</enum>
168 <property name="verticalScrollBarPolicy" >
169 <enum>Qt::ScrollBarAsNeeded</enum>
171 <property name="horizontalScrollBarPolicy" >
172 <enum>Qt::ScrollBarAlwaysOff</enum>
177 <widget class="QPushButton" name="sendButton" >
178 <property name="sizePolicy" >
179 <sizepolicy vsizetype="MinimumExpanding" hsizetype="Preferred" >
180 <horstretch>0</horstretch>
181 <verstretch>0</verstretch>
184 <property name="maximumSize" >
190 <property name="font" >
192 <pointsize>14</pointsize>
197 <property name="styleSheet" >
198 <string notr="true" >QPushButton{
207 <property name="text" >
208 <string>Send</string>
222 <sender>sendButton</sender>
223 <signal>clicked()</signal>
224 <receiver>TocChatWidgetClass</receiver>
225 <slot>pressedSendButton()</slot>
227 <hint type="sourcelabel" >
231 <hint type="destinationlabel" >
238 <sender>sendButton</sender>
239 <signal>clicked()</signal>
240 <receiver>messageTextEdit</receiver>
241 <slot>setFocus()</slot>
243 <hint type="sourcelabel" >
247 <hint type="destinationlabel" >
255 <slot>pressedSendButton()</slot>