KTextEditor

kateargumenthintmodel.h
1/*
2 SPDX-FileCopyrightText: 2007 David Nolden <david.nolden.kdevelop@art-master.de>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KATEARGUMENTHINTMODEL_H
8#define KATEARGUMENTHINTMODEL_H
9
10#include "katecompletionmodel.h"
11#include <QAbstractListModel>
12
14
15class KateArgumentHintModel : public QAbstractListModel
16{
18public:
19 explicit KateArgumentHintModel(KateCompletionModel *parent);
20
21 QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
22
23 int rowCount(const QModelIndex &parent = {}) const override;
24
25 void emitDataChanged(const QModelIndex &start, const QModelIndex &end);
26
27 // Returns the index in the source-model for an index within this model
28 QModelIndex mapToSource(const QModelIndex &proxyIndex) const;
29
30 void buildRows();
31 void clear();
32
33public Q_SLOTS:
34 void parentModelReset();
35
37 void contentStateChanged(bool hasContent);
38
39private:
40 KateCompletionModel::Group *group() const;
41
42 std::vector<int> m_rows; // Maps rows to either a positive row-number in the source group, or to a negative number which indicates a label
43 KateCompletionModel *m_parent;
44};
45
46#endif
This class has the responsibility for filtering, sorting, and manipulating code completion data provi...
This is the code completion's main widget, and also contains the core interface logic.
Q_SCRIPTABLE Q_NOREPLY void start()
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
DisplayRole
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.