initial commit

This commit is contained in:
ikatono
2025-09-23 09:57:16 -05:00
commit 4435393177
6 changed files with 189 additions and 0 deletions

24
ChatList.qml Normal file
View File

@@ -0,0 +1,24 @@
import QtQuick
import Qt.labs.qmlmodels
// This needs a model, either TableModel or something inheriting QAbstractItemModel
// According to docs TableView performance doesn't depend on model size
// Needs 3 columns: timestamp, username, message
Item {
id: item
Rectangle {
id: rect
TableView {
id: table
model: TableModel {
TableModelColumn { display: "timestamp" }
TableModelColumn { display: "displayname" }
TableModelColumn { display: "message" }
}
}
}
function addChatMessage(message: ChatMessage) {
// table.model
}
}