summaryrefslogtreecommitdiff
path: root/conversationmodel.h
diff options
context:
space:
mode:
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