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

Add scrolling to the completer and change max values from 7 to 70

parent b9318a31
No related branches found
No related tags found
1 merge request!20Completer scrolling
Pipeline #2400 failed
......@@ -77,11 +77,19 @@ Popup {
}
padding: 1
onAboutToShow: currentIndex = -1
height: listView.contentHeight + 2 // + 2 for the padding on top and bottom
// height: listView.contentHeight + 2 // + 2 for the padding on top and bottom
height: Math.min(listView.contentHeight + 2, 7*popup.avatarHeight + 2)
ListView {
id: listView
clip: true
ScrollHelper {
flickable: parent
anchors.fill: parent
enabled: !Settings.mobileMode
}
anchors.fill: parent
implicitWidth: fullWidth ? parent.width : contentItem.childrenRect.width
model: completer
......
......@@ -151,7 +151,7 @@ class CompletionProxyModel : public QAbstractProxyModel
public:
CompletionProxyModel(QAbstractItemModel *model,
int max_mistakes = 2,
size_t max_completions = 7,
size_t max_completions = 70,
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