InfixCompleter.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QCompleter>
4 #include <QObject>
5 
6 class QStringListModel;
7 
8 namespace 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  protected:
29  QStringListModel* completionModel;
30  };
31 
32 
33 }
34 
armarx::InfixCompleter::setCompletionList
void setCompletionList(const QStringList &completionList)
Definition: InfixCompleter.cpp:22
armarx::InfixCompleter
This class changes the standard QCompleter to an infix match completer.
Definition: InfixCompleter.h:15
armarx::InfixCompleter::completionModel
QStringListModel * completionModel
Definition: InfixCompleter.h:29
armarx::InfixCompleter::splitPath
QStringList splitPath(const QString &path) const override
Definition: InfixCompleter.cpp:32
armarx::InfixCompleter::getProxyModel
InfixFilterModel * getProxyModel() const
Definition: InfixCompleter.cpp:27
armarx::InfixCompleter::InfixCompleter
InfixCompleter(const QStringList &completionList, QObject *parent=0)
Definition: InfixCompleter.cpp:10
armarx::InfixFilterModel
This proxy model reimplements the filterAcceptsRow function with a new behavior: All elements that fi...
Definition: InfixFilterModel.h:41
armarx::InfixCompleter::setCompletionInfix
void setCompletionInfix(const QString &infix)
Definition: InfixCompleter.cpp:37
armarx::InfixCompleter::proxyModel
InfixFilterModel * proxyModel
Definition: InfixCompleter.h:28
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28