mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 14:04:23 +00:00
Fix compilation error
This commit is contained in:
parent
83ff66e0b1
commit
b9afd63080
@ -49,6 +49,7 @@
|
|||||||
#include "rssfeed.h"
|
#include "rssfeed.h"
|
||||||
#include "rsssettings.h"
|
#include "rsssettings.h"
|
||||||
#include "automatedrssdownloader.h"
|
#include "automatedrssdownloader.h"
|
||||||
|
#include "iconprovider.h"
|
||||||
|
|
||||||
enum NewsCols { NEWS_ICON, NEWS_TITLE_COL, NEWS_URL_COL, NEWS_ID };
|
enum NewsCols { NEWS_ICON, NEWS_TITLE_COL, NEWS_URL_COL, NEWS_ID };
|
||||||
|
|
||||||
@ -148,7 +149,7 @@ void RSSImp::askNewFolder() {
|
|||||||
listStreams->itemAdded(folder_item, new_folder);
|
listStreams->itemAdded(folder_item, new_folder);
|
||||||
// Set Text
|
// Set Text
|
||||||
folder_item->setText(0, new_folder->getName() + QString::fromUtf8(" (0)"));
|
folder_item->setText(0, new_folder->getName() + QString::fromUtf8(" (0)"));
|
||||||
folder_item->setData(0,Qt::DecorationRole, QVariant(misc::getIcon("inode-directory")));
|
folder_item->setData(0,Qt::DecorationRole, QVariant(IconProvider::instance()->getIcon("inode-directory")));
|
||||||
// Expand parent folder to display new folder
|
// Expand parent folder to display new folder
|
||||||
if(parent_item)
|
if(parent_item)
|
||||||
parent_item->setExpanded(true);
|
parent_item->setExpanded(true);
|
||||||
@ -423,7 +424,7 @@ void RSSImp::fillFeedsList(QTreeWidgetItem *parent, RssFolder *rss_parent) {
|
|||||||
if(rss_child->getType() == RssFile::FEED) {
|
if(rss_child->getType() == RssFile::FEED) {
|
||||||
item->setData(0,Qt::DecorationRole, QVariant(QIcon(QString::fromUtf8(":/Icons/loading.png"))));
|
item->setData(0,Qt::DecorationRole, QVariant(QIcon(QString::fromUtf8(":/Icons/loading.png"))));
|
||||||
} else {
|
} else {
|
||||||
item->setData(0,Qt::DecorationRole, QVariant(misc::getIcon("inode-directory")));
|
item->setData(0,Qt::DecorationRole, QVariant(IconProvider::instance()->getIcon("inode-directory")));
|
||||||
// Recurvive call to load sub folders/files
|
// Recurvive call to load sub folders/files
|
||||||
fillFeedsList(item, (RssFolder*)rss_child);
|
fillFeedsList(item, (RssFolder*)rss_child);
|
||||||
}
|
}
|
||||||
@ -582,22 +583,22 @@ void RSSImp::updateRefreshInterval(unsigned int val) {
|
|||||||
RSSImp::RSSImp(QWidget *parent) : QWidget(parent) {
|
RSSImp::RSSImp(QWidget *parent) : QWidget(parent) {
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
// Icons
|
// Icons
|
||||||
actionCopy_feed_URL->setIcon(misc::getIcon("edit-copy"));
|
actionCopy_feed_URL->setIcon(IconProvider::instance()->getIcon("edit-copy"));
|
||||||
actionDelete->setIcon(misc::getIcon("edit-delete"));
|
actionDelete->setIcon(IconProvider::instance()->getIcon("edit-delete"));
|
||||||
actionDownload_torrent->setIcon(misc::getIcon("download"));
|
actionDownload_torrent->setIcon(IconProvider::instance()->getIcon("download"));
|
||||||
actionManage_cookies->setIcon(misc::getIcon("preferences-web-browser-cookies"));
|
actionManage_cookies->setIcon(IconProvider::instance()->getIcon("preferences-web-browser-cookies"));
|
||||||
actionMark_items_read->setIcon(misc::getIcon("mail-mark-read"));
|
actionMark_items_read->setIcon(IconProvider::instance()->getIcon("mail-mark-read"));
|
||||||
actionNew_folder->setIcon(misc::getIcon("folder-new"));
|
actionNew_folder->setIcon(IconProvider::instance()->getIcon("folder-new"));
|
||||||
actionNew_subscription->setIcon(misc::getIcon("list-add"));
|
actionNew_subscription->setIcon(IconProvider::instance()->getIcon("list-add"));
|
||||||
actionOpen_news_URL->setIcon(misc::getIcon("application-x-mswinurl"));
|
actionOpen_news_URL->setIcon(IconProvider::instance()->getIcon("application-x-mswinurl"));
|
||||||
actionRename->setIcon(misc::getIcon("edit-rename"));
|
actionRename->setIcon(IconProvider::instance()->getIcon("edit-rename"));
|
||||||
actionUpdate->setIcon(misc::getIcon("view-refresh"));
|
actionUpdate->setIcon(IconProvider::instance()->getIcon("view-refresh"));
|
||||||
actionUpdate_all_feeds->setIcon(misc::getIcon("view-refresh"));
|
actionUpdate_all_feeds->setIcon(IconProvider::instance()->getIcon("view-refresh"));
|
||||||
newFeedButton->setIcon(misc::getIcon("list-add"));
|
newFeedButton->setIcon(IconProvider::instance()->getIcon("list-add"));
|
||||||
markReadButton->setIcon(misc::getIcon("mail-mark-read"));
|
markReadButton->setIcon(IconProvider::instance()->getIcon("mail-mark-read"));
|
||||||
updateAllButton->setIcon(misc::getIcon("view-refresh"));
|
updateAllButton->setIcon(IconProvider::instance()->getIcon("view-refresh"));
|
||||||
rssDownloaderBtn->setIcon(misc::getIcon("download"));
|
rssDownloaderBtn->setIcon(IconProvider::instance()->getIcon("download"));
|
||||||
settingsButton->setIcon(misc::getIcon("preferences-system"));
|
settingsButton->setIcon(IconProvider::instance()->getIcon("preferences-system"));
|
||||||
|
|
||||||
rssmanager = RssManager::instance();
|
rssmanager = RssManager::instance();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user