forked from blue/squawk
changed my mind, gonna implement the feed on qt instead of qml, first tries, nothing working yet
This commit is contained in:
parent
4e6bd04b02
commit
e54cff0f0c
10 changed files with 200 additions and 100 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue