InfixCompleter.h
Go to the documentation of this file.
1#pragma once
2
3#include <QCompleter>
4#include <QObject>
5
6class QStringListModel;
7
8namespace armarx
9{
10 class InfixFilterModel;
11
12 /**
13 * @brief This class changes the standard QCompleter to an infix match completer.
14 */
15 class InfixCompleter : public QCompleter
16 {
17 Q_OBJECT
18
19 // QCompleter interface
20 public:
21 InfixCompleter(const QStringList& completionList, QObject* parent = 0);
22 void setCompletionList(const QStringList& completionList);
24 QStringList splitPath(const QString& path) const override;
25 public slots:
26 void setCompletionInfix(const QString& infix);
27
28 protected:
30 QStringListModel* completionModel;
31 };
32
33
34} // namespace armarx
void setCompletionInfix(const QString &infix)
void setCompletionList(const QStringList &completionList)
InfixCompleter(const QStringList &completionList, QObject *parent=0)
QStringList splitPath(const QString &path) const override
InfixFilterModel * getProxyModel() const
InfixFilterModel * proxyModel
QStringListModel * completionModel
This proxy model reimplements the filterAcceptsRow function with a new behavior: All elements that fi...
This file offers overloads of toIce() and fromIce() functions for STL container types.