From de4be82bf141f1eb5f57189bf251123e57996f28 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 16 Aug 2017 23:27:51 -0600 Subject: Non listview based conversationview The listview deals badly with non uniformly sized items. We use the buffer hack to ensure all items are loaded so it works at all, and setting the current index resulted in unpredictable scrolling. With this new approach we manage everything ourselves in a Flickable, and just always load all delegates (which we also did before, but with a hack). As an optimization it should be possible to avoid loading some delegates until they become visible. Note that ConversationView is thightly coupled to ConversationListView due to dependencies on some properties in the delegate. This could be handled more elegantly with attached properties. In any case, this seems to work much, much better. --- framework/qmldir | 1 + 1 file changed, 1 insertion(+) (limited to 'framework/qmldir') diff --git a/framework/qmldir b/framework/qmldir index 02a66bb6..7ce99e2a 100644 --- a/framework/qmldir +++ b/framework/qmldir @@ -1,6 +1,7 @@ module org.kube.framework ConversationView 1.0 ConversationView.qml +ConversationListView 1.0 ConversationListView.qml FolderListView 1.0 FolderListView.qml MailListView 1.0 MailListView.qml InlineAccountSwitcher 1.0 InlineAccountSwitcher.qml -- cgit v1.2.3