diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-03 23:06:44 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-03 23:06:44 +0100 |
| commit | b934e6b0fdcc56f2cca1cca9ebce289cebaaafa2 (patch) | |
| tree | 686950abbdc508561a635d5551a38d811c75d337 /conversationmodel.h | |
| parent | 997e9b168d362a50cdcdc82c6cc3488a6852737a (diff) | |
| download | yachat6-b934e6b0fdcc56f2cca1cca9ebce289cebaaafa2.tar.gz | |
Replace ConversationModel with ListModel
Diffstat (limited to 'conversationmodel.h')
| -rw-r--r-- | conversationmodel.h | 30 |
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 |
