From b934e6b0fdcc56f2cca1cca9ebce289cebaaafa2 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 3 Feb 2026 23:06:44 +0100 Subject: Replace ConversationModel with ListModel --- conversationmodel.cpp | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 conversationmodel.cpp (limited to 'conversationmodel.cpp') diff --git a/conversationmodel.cpp b/conversationmodel.cpp deleted file mode 100644 index 8257fb1..0000000 --- a/conversationmodel.cpp +++ /dev/null @@ -1,34 +0,0 @@ -#include "conversationmodel.h" -#include - -int ConversationModel::rowCount(const QModelIndex &parent) const -{ - qDebug() << conversations.count(); - return conversations.count(); -} - -QVariant ConversationModel::data(const QModelIndex &index, int role) const -{ - qDebug() << conversations; - return conversations.at(index.row()); -} - -void ConversationModel::append(const QString &value) -{ - beginInsertRows(QModelIndex(), rowCount(), rowCount()); - endInsertRows(); - conversations << value; - qDebug() << conversations; - qDebug() << conversations.count(); -} - -bool ConversationModel::setData(const QModelIndex &index, const QVariant &value, - int role) -{ - return false; -} - -QStringList ConversationModel::getConversations() const -{ - return conversations; -} -- cgit v1.2.3