peerplays_migrated/programs/light_client/ClientDataModel.cpp

24 lines
483 B
C++
Raw Normal View History

2015-07-10 21:37:22 +00:00
#include "ClientDataModel.hpp"
2015-07-13 17:19:07 +00:00
Account* ChainDataModel::getAccount(quint64 id) const
2015-07-10 21:37:22 +00:00
{
auto acct = new Account;
acct->setProperty("id", id);
acct->setProperty("name", "joe");
return acct;
}
2015-07-13 17:19:07 +00:00
Account*ChainDataModel::getAccount(QString name) const
2015-07-10 21:37:22 +00:00
{
auto acct = new Account;
acct->setProperty("id", 800);
acct->setProperty("name", name);
return acct;
}
QQmlListProperty<Balance> Account::balances()
{
return QQmlListProperty<Balance>(this, m_balances);
}