Akonadi
9#include <QAbstractItemModel>
11#include "akonadicore_export.h"
21class AKONADICORE_EXPORT TagModel :
public QAbstractItemModel
35 TerminalUserRole = 2000,
39 explicit TagModel(Monitor *recorder, QObject *parent =
nullptr);
42 [[nodiscard]]
int columnCount(
const QModelIndex &parent = QModelIndex())
const override;
43 [[nodiscard]]
int rowCount(
const QModelIndex &parent = QModelIndex())
const override;
45 [[nodiscard]] QVariant data(
const QModelIndex &index,
int role)
const override;
48 [[nodiscard]]
Qt::ItemFlags flags(
const QModelIndex &index)
const override;
55 [[nodiscard]] QModelIndex parent(
const QModelIndex &child)
const override;
56 [[nodiscard]] QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex())
const override;
59 Q_DECLARE_PRIVATE(TagModel)
60 std::unique_ptr<TagModelPrivate>
const d_ptr;
62 TagModel(Monitor *recorder, TagModelPrivate *dd, QObject *parent);
68 bool insertRows(
int row,
int count,
const QModelIndex &index = QModelIndex())
override;
69 bool insertColumns(
int column,
int count,
const QModelIndex &index = QModelIndex())
override;
70 bool removeColumns(
int column,
int count,
const QModelIndex &index = QModelIndex())
override;
71 bool removeRows(
int row,
int count,
const QModelIndex &index = QModelIndex())
override;
73 Q_PRIVATE_SLOT(d_func(),
void tagsFetched(
const Akonadi::Tag::List &tags))
74 Q_PRIVATE_SLOT(d_func(),
void monitoredTagAdded(
const Akonadi::Tag &tag))
75 Q_PRIVATE_SLOT(d_func(),
void monitoredTagRemoved(
const Akonadi::Tag &tag))
76 Q_PRIVATE_SLOT(d_func(),
void monitoredTagChanged(
const Akonadi::Tag &tag))
Monitors an item or collection for changes.
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:57 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.