Skip to content
Snippets Groups Projects
Verified Commit add0e1e4 authored by Joe Donofry's avatar Joe Donofry
Browse files

Change completer limit to 30. Make up/down scroll listview

parent 0515a6d6
No related branches found
No related tags found
1 merge request!20Completer scrolling
Pipeline #2422 failed
......@@ -11,7 +11,7 @@ import im.nheko 1.0
Popup {
id: popup
property int currentIndex: -1
property alias currentIndex: listView.currentIndex
property string completerName
property var completer
property bool bottomToTop: true
......@@ -96,6 +96,7 @@ Popup {
verticalLayoutDirection: popup.bottomToTop ? ListView.BottomToTop : ListView.TopToBottom
spacing: rowSpacing
pixelAligned: true
highlightFollowsCurrentItem: true
delegate: Rectangle {
property variant modelData: model
......
......@@ -151,7 +151,7 @@ class CompletionProxyModel : public QAbstractProxyModel
public:
CompletionProxyModel(QAbstractItemModel *model,
int max_mistakes = 2,
size_t max_completions = 70,
size_t max_completions = 30,
QObject *parent = nullptr);
void invalidate();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment