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 ...@@ -11,7 +11,7 @@ import im.nheko 1.0
Popup { Popup {
id: popup id: popup
property int currentIndex: -1 property alias currentIndex: listView.currentIndex
property string completerName property string completerName
property var completer property var completer
property bool bottomToTop: true property bool bottomToTop: true
...@@ -96,6 +96,7 @@ Popup { ...@@ -96,6 +96,7 @@ Popup {
verticalLayoutDirection: popup.bottomToTop ? ListView.BottomToTop : ListView.TopToBottom verticalLayoutDirection: popup.bottomToTop ? ListView.BottomToTop : ListView.TopToBottom
spacing: rowSpacing spacing: rowSpacing
pixelAligned: true pixelAligned: true
highlightFollowsCurrentItem: true
delegate: Rectangle { delegate: Rectangle {
property variant modelData: model property variant modelData: model
......
...@@ -151,7 +151,7 @@ class CompletionProxyModel : public QAbstractProxyModel ...@@ -151,7 +151,7 @@ class CompletionProxyModel : public QAbstractProxyModel
public: public:
CompletionProxyModel(QAbstractItemModel *model, CompletionProxyModel(QAbstractItemModel *model,
int max_mistakes = 2, int max_mistakes = 2,
size_t max_completions = 70, size_t max_completions = 30,
QObject *parent = nullptr); QObject *parent = nullptr);
void invalidate(); 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