[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:18:41 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=ce29c14

The following commit has been merged in the master branch:
commit ce29c142fc50a920c96f5850a7a342abfaac0466
Author: Dominik Schmidt <dev at dominik-schmidt.de>
Date:   Thu Feb 3 22:22:03 2011 +0100

    Add Send-Button to the chat window.
---
 lib/chatwidget.cpp |  1 +
 lib/chatwidget.ui  | 50 ++++++++++++++++++++++++++++++++++++--------------
 2 files changed, 37 insertions(+), 14 deletions(-)

diff --git a/lib/chatwidget.cpp b/lib/chatwidget.cpp
index 6183233..a559adc 100644
--- a/lib/chatwidget.cpp
+++ b/lib/chatwidget.cpp
@@ -198,6 +198,7 @@ void ChatWidget::init()
     MessageBoxEventFilter *messageBoxEventFilter = new MessageBoxEventFilter(this);
     d->ui.sendMessageBox->installEventFilter(messageBoxEventFilter);
     connect(messageBoxEventFilter, SIGNAL(returnKeyPressed()), SLOT(sendMessage()));
+    connect(d->ui.sendButton, SIGNAL(clicked()), SLOT(sendMessage()));
 }
 
 
diff --git a/lib/chatwidget.ui b/lib/chatwidget.ui
index 8d95066..c847966 100644
--- a/lib/chatwidget.ui
+++ b/lib/chatwidget.ui
@@ -114,25 +114,47 @@
     </widget>
    </item>
    <item>
-    <widget class="ChatTextEdit" name="sendMessageBox">
-     <property name="sizePolicy">
-      <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
-       <horstretch>0</horstretch>
-       <verstretch>0</verstretch>
-      </sizepolicy>
-     </property>
-     <property name="frameShape">
-      <enum>QFrame::StyledPanel</enum>
-     </property>
-     <property name="frameShadow">
-      <enum>QFrame::Sunken</enum>
-     </property>
-    </widget>
+    <layout class="QHBoxLayout" name="horizontalLayout">
+     <item>
+      <widget class="ChatTextEdit" name="sendMessageBox">
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="frameShape">
+        <enum>QFrame::StyledPanel</enum>
+       </property>
+       <property name="frameShadow">
+        <enum>QFrame::Sunken</enum>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="KPushButton" name="sendButton">
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="text">
+        <string>&Send</string>
+       </property>
+      </widget>
+     </item>
+    </layout>
    </item>
   </layout>
  </widget>
  <customwidgets>
   <customwidget>
+   <class>KPushButton</class>
+   <extends>QPushButton</extends>
+   <header>kpushbutton.h</header>
+  </customwidget>
+  <customwidget>
    <class>AdiumThemeView</class>
    <extends>QWidget</extends>
    <header>adiumthemeview.h</header>

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list