KTextAddons
9#include "textautogeneratehistoryinfo.h"
10#include "textautogeneratetext_export.h"
11#include <QAbstractListModel>
14namespace TextAutogenerateText
16class TEXTAUTOGENERATETEXT_EXPORT TextAutoGenerateHistoryModel :
public QAbstractListModel
20 enum HistoryRole : uint16_t {
28 explicit TextAutoGenerateHistoryModel(QObject *parent =
nullptr);
29 ~TextAutoGenerateHistoryModel()
override;
31 [[nodiscard]]
int rowCount(
const QModelIndex & = {})
const override;
32 [[nodiscard]] QVariant data(
const QModelIndex &index,
int role)
const override;
34 [[nodiscard]] QList<TextAutoGenerateHistoryInfo> historyInfos()
const;
35 void setHistoryInfos(
const QList<TextAutoGenerateHistoryInfo> &newHistoryInfos);
38 void addInfo(
const TextAutoGenerateHistoryInfo &msg);
40 [[nodiscard]]
bool removeInfo(
const QByteArray &uuid);
43 QList<TextAutoGenerateHistoryInfo> mHistoryInfos;
QAction * clear(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 18 2025 12:00:52 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.