[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:19:48 UTC 2016


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

The following commit has been merged in the master branch:
commit bda02b6f9e9530504fc6d45644270cfa532fb166
Author: Martin Klapetek <martin.klapetek at gmail.com>
Date:   Sat Sep 17 13:35:45 2011 +0100

    Prepend 'Typing...' to the window title if the other side is typing
    
    Reviewed-by: Francesco Nwokeka
    BUG: 281157
---
 app/chat-window.cpp | 11 +++++++++--
 app/chat-window.h   |  1 +
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/app/chat-window.cpp b/app/chat-window.cpp
index a308b8a..9f918b0 100644
--- a/app/chat-window.cpp
+++ b/app/chat-window.cpp
@@ -454,6 +454,7 @@ void ChatWindow::setupChatTabSignals(ChatTab *chatTab)
     connect(chatTab, SIGNAL(titleChanged(QString)), this, SLOT(onTabTextChanged(QString)));
     connect(chatTab, SIGNAL(iconChanged(KIcon)), this, SLOT(onTabIconChanged(KIcon)));
     connect(chatTab, SIGNAL(userTypingChanged(bool)), this, SLOT(onTabStateChanged()));
+    connect(chatTab, SIGNAL(userTypingChanged(bool)), this, SLOT(onUserTypingChanged(bool)));
     connect(chatTab, SIGNAL(unreadMessagesChanged(int)), this, SLOT(onTabStateChanged()));
     connect(chatTab, SIGNAL(contactPresenceChanged(Tp::Presence)), this, SLOT(onTabStateChanged()));
     connect(chatTab->chatSearchBar(), SIGNAL(enableSearchButtonsSignal(bool)), this, SLOT(onEnableSearchActions(bool)));
@@ -580,7 +581,13 @@ void ChatWindow::startVideoCall(const Tp::AccountPtr& account, const Tp::Contact
     connect(channelRequest, SIGNAL(finished(Tp::PendingOperation*)), this, SLOT(onGenericOperationFinished(Tp::PendingOperation*)));
 }
 
-
-
+void ChatWindow::onUserTypingChanged(bool typing)
+{
+    if (typing) {
+        setWindowTitle(i18n("Typing... %1", windowTitle()));
+    } else {
+        setWindowTitle(windowTitle().remove(i18n("Typing... ")));
+    }
+}
 
 #include "chat-window.moc"
diff --git a/app/chat-window.h b/app/chat-window.h
index a9f9c4f..36f33da 100644
--- a/app/chat-window.h
+++ b/app/chat-window.h
@@ -84,6 +84,7 @@ private Q_SLOTS:
     void onTabTextChanged(const QString &newTitle);
     void onTabIconChanged(const KIcon &newIcon);
     void onVideoCallTriggered();                                /** start a video call */
+    void onUserTypingChanged(bool typing);
 
 protected Q_SLOTS:
     void showSettingsDialog();

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list