status-desktop/src-cpp/app/modules/main/wallet/accounts/view.cpp

28 lines
426 B
C++
Raw Normal View History

#include <QDebug>
#include "view.h"
namespace Modules::Main::Wallet::Accounts
{
View::View(QObject* parent)
: QObject(parent)
{
m_modelPtr = new Model(this);
}
void View::load()
{
emit viewLoaded();
}
Model* View::getModel()
{
return m_modelPtr;
}
void View::setModelItems(QVector<Item> &accounts) {
m_modelPtr->setItems(accounts);
modelChanged();
}
} // namespace Modules::Main::Wallet::Accounts