[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:22:14 UTC 2016


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

The following commit has been merged in the master branch:
commit 0649ecab265021049c5b69d258a6882783e0bd57
Author: Aleix Pol <aleixpol at kde.org>
Date:   Wed Aug 1 14:01:51 2012 +0200

    Improve behavior while chatting
    
    Follow the conversation only if the last time the user scrolled,
    scrolled to the end.
    
    For proper enjoyment of this feature, I'd recommend to use a KDE 4.9.1
    that will have the fix discussed in the reviewboard.
    
    REVIEW: 105811
    BUG: 293522
---
 plasmoid/org.kde.ktp-chatplasmoid/contents/ui/ChatWidget.qml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/plasmoid/org.kde.ktp-chatplasmoid/contents/ui/ChatWidget.qml b/plasmoid/org.kde.ktp-chatplasmoid/contents/ui/ChatWidget.qml
index 5eea8b7..6ba6005 100644
--- a/plasmoid/org.kde.ktp-chatplasmoid/contents/ui/ChatWidget.qml
+++ b/plasmoid/org.kde.ktp-chatplasmoid/contents/ui/ChatWidget.qml
@@ -122,6 +122,8 @@ Item {
 
     ListView {
         id: view
+        property bool followConversation: true
+
         anchors {
             top: space.bottom
             left: parent.left
@@ -138,7 +140,6 @@ Item {
 
         delegate: Loader {
             Component.onCompleted: {
-                console.log(model.type);
                 switch(model.type) {
                     case MessagesModel.MessageTypeOutgoing:
 //                             console.log("Type: MessagesModel::MessageTypeOutgoing");
@@ -156,9 +157,10 @@ Item {
         }
 
         model: conv.messages
+        onMovementEnded: followConversation = atYEnd //we only follow the conversation if moved to the end
 
         onCountChanged: {
-            if((view.contentHeight-view.contentY)<(1.2*view.height)) {
+            if(!moving && followConversation && contentHeight>height) {
                 view.positionViewAtEnd()
             }
         }

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list