debugging
This commit is contained in:
parent
6e16292f06
commit
27124380e4
8 changed files with 76 additions and 52 deletions
|
@ -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;
|
||||
|
|
|
@ -22,6 +22,7 @@ struct Asset {
|
|||
class Assets : public QAbstractListModel {
|
||||
Q_OBJECT
|
||||
QML_ELEMENT
|
||||
QML_SINGLETON
|
||||
|
||||
public:
|
||||
explicit Assets (QObject* parent = nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue