Kate
snippetfilterproxymodel.cpp
Go to the documentation of this file.
45 Snippet* snippet = dynamic_cast<Snippet*>( SnippetStore::self()->itemFromIndex(mapToSource(index)) );
47 QString ret = snippet->prefix() + ' ' + snippet->text() + snippet->arguments() + ' ' + snippet->postfix();
60 bool SnippetFilterProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex & sourceParent) const
85 void SnippetFilterProxyModel::dataChanged(const QModelIndex& /*topLeft*/, const QModelIndex& /*bottomRight*/)
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
~SnippetFilterProxyModel()
Definition: snippetfilterproxymodel.cpp:37
void clear()
SnippetFilterProxyModel(QObject *parent)
Definition: snippetfilterproxymodel.cpp:27
QString text() const
void changeFilter(const QString &filter)
Definition: snippetfilterproxymodel.cpp:54
bool isValid() const
bool isEmpty() const
QString trimmed() const
virtual QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: snippetfilterproxymodel.cpp:41
QModelIndex parent() const
bool contains(QChar ch, Qt::CaseSensitivity cs) const
QAbstractItemModel * sourceModel() const
virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const
QStandardItem * itemFromIndex(const QModelIndex &index) const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual QVariant data(const QModelIndex &index, int role) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.