1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2026-05-19 10:35:16 +00:00

Make model code compileable

This disables some application level logic, but I'm going to rewrite
that using Lager anyway.
This commit is contained in:
Chris Josten 2021-03-20 16:29:31 +01:00
parent 0358418926
commit b9b08ab384
551 changed files with 8943 additions and 8809 deletions

View file

@ -19,7 +19,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#include "JellyfinQt/apimodel.h"
#include "JellyfinQt/DTO/item.h"
#include "JellyfinQt/DTO/baseitemdto.h"
#include "JellyfinQt/DTO/useritemdatadto.h"
#include "JellyfinQt/DTO/userdto.h"
@ -380,18 +380,18 @@ ItemModel::ItemModel(QString path, bool hasRecordFields, bool replaceUser, QObje
void ItemModel::onUserDataChanged(const QString &itemId, DTO::UserData *userData) {
int i = 0;
for (Item *val: m_array) {
/*for (DTO::BaseItemDto *val: m_array) {
if (val->userData() != nullptr && val->jellyfinId() == itemId) {
QModelIndex cell = this->index(i);
// val->userData()->onUpdated(userData);
this->dataChanged(cell, cell);
}
i++;
}
}*/
}
void ItemModel::addQueryParameters(QUrlQuery &query) {
ApiModel<Item>::addQueryParameters(query);
ApiModel<QJsonValue>::addQueryParameters(query);
if (!m_parentId.isEmpty()) {
query.addQueryItem("ParentId", m_parentId);
}