Resize dialogs.
This commit is contained in:
parent
51a757370f
commit
2f8846b3a7
@ -480,7 +480,7 @@ RootItem* OwnCloudGetFeedsCategoriesResponse::feedsCategories(bool obtain_icons)
|
|||||||
RootItem* parent = new RootItem();
|
RootItem* parent = new RootItem();
|
||||||
|
|
||||||
QMap<QString, RootItem*> cats;
|
QMap<QString, RootItem*> cats;
|
||||||
cats.insert(NO_PARENT_CATEGORY_STR, parent);
|
cats.insert(QSL("0"), parent);
|
||||||
|
|
||||||
// Process categories first, then process feeds.
|
// Process categories first, then process feeds.
|
||||||
foreach (const QJsonValue& cat, QJsonDocument::fromJson(m_contentCategories.toUtf8()).object()["folders"].toArray()) {
|
foreach (const QJsonValue& cat, QJsonDocument::fromJson(m_contentCategories.toUtf8()).object()["folders"].toArray()) {
|
||||||
@ -488,7 +488,7 @@ RootItem* OwnCloudGetFeedsCategoriesResponse::feedsCategories(bool obtain_icons)
|
|||||||
Category* category = new Category();
|
Category* category = new Category();
|
||||||
|
|
||||||
category->setTitle(item["name"].toString());
|
category->setTitle(item["name"].toString());
|
||||||
category->setCustomId(item["id"].toString());
|
category->setCustomId(QString::number(item["id"].toInt()));
|
||||||
cats.insert(category->customId(), category);
|
cats.insert(category->customId(), category);
|
||||||
|
|
||||||
// All categories in ownCloud are top-level.
|
// All categories in ownCloud are top-level.
|
||||||
@ -521,9 +521,9 @@ RootItem* OwnCloudGetFeedsCategoriesResponse::feedsCategories(bool obtain_icons)
|
|||||||
|
|
||||||
feed->setUrl(item["link"].toString());
|
feed->setUrl(item["link"].toString());
|
||||||
feed->setTitle(item["title"].toString());
|
feed->setTitle(item["title"].toString());
|
||||||
feed->setCustomId(item["id"].toString());
|
feed->setCustomId(QString::number(item["id"].toInt()));
|
||||||
qDebug("Custom ID of next fetched Nextcloud feed is '%d'.", item["id"].toInt());
|
qDebug("Custom ID of next fetched Nextcloud feed is '%s'.", qPrintable(feed->customId()));
|
||||||
cats.value(item["folderId"].toString())->appendChild(feed);
|
cats.value(QString::number(item["folderId"].toInt()))->appendChild(feed);
|
||||||
}
|
}
|
||||||
|
|
||||||
return parent;
|
return parent;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user