summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2018-05-04 11:00:18 (GMT)
committerTobias Markmann <tm@ayena.de>2018-05-04 11:00:18 (GMT)
commit19eefe66821d26a00d24fbe44aa870309d80ad4b (patch)
tree8ccac3836a98f45bd5e176d58a3a3c38b035653a /Swift/QtUI/QtChatOverviewBundle.h
parent202c114d6b1daa1ea1d4693c434bd8daabd41ad1 (diff)
downloadswift-19eefe66821d26a00d24fbe44aa870309d80ad4b.zip
swift-19eefe66821d26a00d24fbe44aa870309d80ad4b.tar.bz2
Use dedicated QtExpandedListView in new roster UI
QtExpandedListView is always high enough to show all entries in the model. It also correctly hands off scrolling events to the parent widget for smooth scrolling. Test-Information: Tested on macOS 10.13.4 with a well sized roster, that sizing and scrolling works as expected. Tested with Qt 5.5.1. Change-Id: I6d93db3045e1c2f343b89c0d45874d8f85a20c0a
Diffstat (limited to 'Swift/QtUI/QtChatOverviewBundle.h')
-rw-r--r--Swift/QtUI/QtChatOverviewBundle.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Swift/QtUI/QtChatOverviewBundle.h b/Swift/QtUI/QtChatOverviewBundle.h
index f469fea..6e232ca 100644
--- a/Swift/QtUI/QtChatOverviewBundle.h
+++ b/Swift/QtUI/QtChatOverviewBundle.h
@@ -19,6 +19,7 @@ class QListView;
namespace Swift {
class ChattablesModel;
class QtClickableLabel;
+ class QtExpandedListView;
class BundleFilter : public QSortFilterProxyModel {
Q_OBJECT
@@ -44,12 +45,12 @@ namespace Swift {
void clicked(JID jid);
private slots:
- void recalculateSize();
void handleFilterClicked();
void handleItemClicked(const QModelIndex&);
+
private:
ChattablesModel* rootModel_;
- QListView* listView_;
+ QtExpandedListView* listView_;
BundleFilter* proxyModel_;
bool hideWhenEmpty_;
QtClickableLabel* filterLabel_ = nullptr;