10#ifndef FILTER_COMPLETER_H
11#define FILTER_COMPLETER_H
32class FilterCompleter :
public QCompleter
37 explicit FilterCompleter(QObject *parent =
nullptr);
53 QStringList
splitPath(
const QString &path)
const override;
58 QString
pathFromIndex(
const QModelIndex &index)
const override;
69 bool eventFilter(QObject *watched, QEvent *event)
override;
QStringList splitPath(const QString &path) const override
Splits path into the prefix QCompleter should match against.
Definition filter_completer.cpp:52
QString pathFromIndex(const QModelIndex &index) const override
Maps a chosen completion row back to the text to insert.
Definition filter_completer.cpp:69
QString token_chars_
Definition filter_completer.h:71
bool eventFilter(QObject *watched, QEvent *event) override
Constrains the popup to its content width on show/resize.
Definition filter_completer.cpp:33
void setTokenChars(const QString &token_chars)
Sets the characters considered part of a single completion token.
Definition filter_completer.h:44
const QString & tokenChars() const
Returns the configured token characters.
Definition filter_completer.h:47