Commit 129c0f2b authored by Matt Whitlock's avatar Matt Whitlock
Browse files

bittorrent: delete commented-out code in iwfile{list,tree}model.cpp


Suggested-by: Andrius Štikonas's avatarAndrius Štikonas <andrius@stikonas.eu>
parent d8bc4e2d
......@@ -97,25 +97,7 @@ namespace kt
return QVariant();
if (role == Qt::ForegroundRole && index.column() == 2 && tc->getStats().multi_file_torrent)
{
const bt::TorrentFileInterface* file = &tc->getTorrentFile(index.row());
switch (file->getPriority())
{
/*case FIRST_PREVIEW_PRIORITY:
case FIRST_PRIORITY:
return InfoWidgetPluginSettings::firstColor();
case LAST_PREVIEW_PRIORITY:
case LAST_PRIORITY:
return InfoWidgetPluginSettings::lastColor();
case NORMAL_PREVIEW_PRIORITY:
case NORMAL_PRIORITY:
return InfoWidgetPluginSettings::normalColor();
case ONLY_SEED_PRIORITY:
case EXCLUDED:*/
default:
return QVariant();
}
}
return QVariant();
if (role == Qt::DisplayRole)
return displayData(index);
......
......@@ -101,25 +101,7 @@ namespace kt
return QVariant();
if (role == Qt::ForegroundRole && index.column() == 2 && tc->getStats().multi_file_torrent && n->file)
{
const bt::TorrentFileInterface* file = n->file;
switch (file->getPriority())
{
/*case FIRST_PREVIEW_PRIORITY:
case FIRST_PRIORITY:
return InfoWidgetPluginSettings::firstColor();
case LAST_PREVIEW_PRIORITY:
case LAST_PRIORITY:
return InfoWidgetPluginSettings::lastColor();
case NORMAL_PREVIEW_PRIORITY:
case NORMAL_PRIORITY:
return InfoWidgetPluginSettings::normalColor();
case ONLY_SEED_PRIORITY:
case EXCLUDED:*/
default:
return QVariant();
}
}
return QVariant();
if (role == Qt::DisplayRole)
return displayData(n,index);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment