mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-11 01:44:58 -06:00
Initial support for system Icons (incomplete but good progress)
This commit is contained in:
@@ -434,9 +434,9 @@ public:
|
||||
TreeItem *item = static_cast<TreeItem*>(index.internalPointer());
|
||||
if(index.column() == 0 && role == Qt::DecorationRole) {
|
||||
if(item->isFolder())
|
||||
return QIcon(":/Icons/oxygen/folder.png");
|
||||
return misc::getIcon("inode-directory");
|
||||
else
|
||||
return QIcon(":/Icons/oxygen/file.png");
|
||||
return misc::getIcon("text-plain");
|
||||
}
|
||||
if(index.column() == 0 && role == Qt::CheckStateRole) {
|
||||
if(item->data(TreeItem::COL_PRIO).toInt() == IGNORED)
|
||||
|
||||
Reference in New Issue
Block a user