debugging

This commit is contained in:
Blue 2024-01-18 19:14:33 -03:00
parent 6e16292f06
commit 27124380e4
Signed by: blue
GPG key ID: 9B203B252A63EE38
8 changed files with 76 additions and 52 deletions

View file

@ -82,6 +82,7 @@ void Models::Assets::fetchMore (const QModelIndex& parent) {
return;
state = State::requesting;
emit requestAssets();
}
QVariant Models::Assets::data (const QModelIndex& index, int role) const {
@ -116,7 +117,7 @@ bool Models::Assets::deserialize (const QVariantList& from, std::deque<Asset>& o
asset.title = ser.value("title").toString();
asset.icon = ser.value("icon").toString();
asset.archived = ser.value("archived").toBool();
asset.id = ser.value("archived").toUInt();
asset.id = ser.value("id").toUInt();
}
return true;

View file

@ -22,6 +22,7 @@ struct Asset {
class Assets : public QAbstractListModel {
Q_OBJECT
QML_ELEMENT
QML_SINGLETON
public:
explicit Assets (QObject* parent = nullptr);