[SCM] ktp-contact-applet packaging branch, master, updated. debian/15.12.1-1-966-gde83ac5
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:18:14 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-desktop-applets.git;a=commitdiff;h=dc5dfc8
The following commit has been merged in the master branch:
commit dc5dfc8e32e6b4a285ded327d4b78c40cd24adf8
Author: Aleix Pol <aleixpol at kde.org>
Date: Wed Feb 20 03:57:54 2013 +0100
Cache all the conversation in the ListView
Keep all the delegates in memory while showing. It could be a problem
if the conversation grows _a lot_ but it has to grow a lot.
Possible ways to solve it:
- limit the log lines that we'll be displaying. We're talking about a
plasmoid anyway. If the user wants to read the log, he'll use ktp-log-viewer.
- set interactive to false. Then we can scroll as much we want, but not with
the scrollbar
- buy a better aleix
REVIEW: 109051
CCBUG: 298392
---
chat/org.kde.ktp-chat/contents/ui/ChatWidget.qml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/chat/org.kde.ktp-chat/contents/ui/ChatWidget.qml b/chat/org.kde.ktp-chat/contents/ui/ChatWidget.qml
index 7bc6279..7924ad2 100644
--- a/chat/org.kde.ktp-chat/contents/ui/ChatWidget.qml
+++ b/chat/org.kde.ktp-chat/contents/ui/ChatWidget.qml
@@ -157,6 +157,10 @@ FocusScope {
section.property: "user"
section.delegate: PlasmaComponents.Label { text: section; font.bold: true; anchors.right: parent.right}
clip: true
+
+ //we need this so that scrolling down to the last element works properly
+ //this means that all the list is in memory
+ cacheBuffer: contentHeight
delegate: Loader {
Component.onCompleted: {
@@ -181,7 +185,7 @@ FocusScope {
onCountChanged: {
if(!moving && followConversation && contentHeight>height) {
- view.positionViewAtEnd(); view.positionViewAtEnd() //see https://bugreports.qt-project.org/browse/QTBUG-27529
+ view.positionViewAtEnd()
}
}
}
--
ktp-contact-applet packaging
More information about the pkg-kde-commits
mailing list