changed my mind, gonna implement the feed on qt instead of qml, first tries, nothing working yet

This commit is contained in:
Blue 2020-08-16 00:48:28 +03:00
parent 4e6bd04b02
commit e54cff0f0c
10 changed files with 200 additions and 100 deletions

View file

@ -85,6 +85,7 @@ QVariant MessageFeed::data(const QModelIndex& index, int role) const
const Shared::Message* msg = *itr;
switch (role) {
case Qt::DisplayRole:
case Text:
answer = msg->getBody();
break;
@ -108,6 +109,7 @@ QVariant MessageFeed::data(const QModelIndex& index, int role) const
}
} else {
switch (role) {
case Qt::DisplayRole:
case Text:
answer = "loading...";
break;