summaryrefslogtreecommitdiff
path: root/conversationmodel.h
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-02-03 23:06:44 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-02-03 23:06:44 +0100
commitb934e6b0fdcc56f2cca1cca9ebce289cebaaafa2 (patch)
tree686950abbdc508561a635d5551a38d811c75d337 /conversationmodel.h
parent997e9b168d362a50cdcdc82c6cc3488a6852737a (diff)
downloadyachat6-b934e6b0fdcc56f2cca1cca9ebce289cebaaafa2.tar.gz
Replace ConversationModel with ListModel
Diffstat (limited to 'conversationmodel.h')
-rw-r--r--conversationmodel.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/conversationmodel.h b/conversationmodel.h
deleted file mode 100644
index 971d36f..0000000
--- a/conversationmodel.h
+++ /dev/null
@@ -1,30 +0,0 @@
-#ifndef CONVERSATION_MODEL_H
-#define CONVERSATION_MODEL_H
-
-#include <QAbstractListModel>
-#include <QQmlApplicationEngine>
-#include <QVariant>
-
-class ConversationModel : public QAbstractListModel
-{
- Q_OBJECT
- QML_ELEMENT
-
- Q_PROPERTY(QStringList conversations READ getConversations NOTIFY conversationsChanged)
-
-public:
- Q_INVOKABLE int rowCount(const QModelIndex &parent = QModelIndex()) const override;
- QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
- bool setData(const QModelIndex &index, const QVariant &value,
- int role = Qt::EditRole) override;
- Q_INVOKABLE void append(const QString &value);
- QStringList getConversations() const;
-
-private:
- QStringList conversations;
-
-signals:
- void conversationsChanged();
-};
-
-#endif