@ -165,40 +165,40 @@ StatusFilterWidget::StatusFilterWidget(QWidget *parent, TransferListWidget *tran
// Add status filters
// Add status filters
auto * all = new QListWidgetItem ( this ) ;
auto * all = new QListWidgetItem ( this ) ;
all - > setData ( Qt : : DisplayRole , tr ( " All (0) " , " this is for the status filter " ) ) ;
all - > setData ( Qt : : DisplayRole , tr ( " All (0) " , " this is for the status filter " ) ) ;
all - > setData ( Qt : : DecorationRole , QIcon ( " :/icons/filterall.svg " ) ) ;
all - > setData ( Qt : : DecorationRole , UIThemeManager : : instance ( ) - > getIcon ( QLatin1String ( " filterall " ) ) ) ;
auto * downloading = new QListWidgetItem ( this ) ;
auto * downloading = new QListWidgetItem ( this ) ;
downloading - > setData ( Qt : : DisplayRole , tr ( " Downloading (0) " ) ) ;
downloading - > setData ( Qt : : DisplayRole , tr ( " Downloading (0) " ) ) ;
downloading - > setData ( Qt : : DecorationRole , QIcon ( " :/icons/downloading.svg " ) ) ;
downloading - > setData ( Qt : : DecorationRole , UIThemeManager : : instance ( ) - > getIcon ( QLatin1String ( " downloading " ) ) ) ;
auto * seeding = new QListWidgetItem ( this ) ;
auto * seeding = new QListWidgetItem ( this ) ;
seeding - > setData ( Qt : : DisplayRole , tr ( " Seeding (0) " ) ) ;
seeding - > setData ( Qt : : DisplayRole , tr ( " Seeding (0) " ) ) ;
seeding - > setData ( Qt : : DecorationRole , QIcon ( " :/icons/uploading.svg " ) ) ;
seeding - > setData ( Qt : : DecorationRole , UIThemeManager : : instance ( ) - > getIcon ( QLatin1String ( " uploading " ) ) ) ;
auto * completed = new QListWidgetItem ( this ) ;
auto * completed = new QListWidgetItem ( this ) ;
completed - > setData ( Qt : : DisplayRole , tr ( " Completed (0) " ) ) ;
completed - > setData ( Qt : : DisplayRole , tr ( " Completed (0) " ) ) ;
completed - > setData ( Qt : : DecorationRole , QIcon ( " :/icons/completed.svg " ) ) ;
completed - > setData ( Qt : : DecorationRole , UIThemeManager : : instance ( ) - > getIcon ( QLatin1String ( " completed " ) ) ) ;
auto * resumed = new QListWidgetItem ( this ) ;
auto * resumed = new QListWidgetItem ( this ) ;
resumed - > setData ( Qt : : DisplayRole , tr ( " Resumed (0) " ) ) ;
resumed - > setData ( Qt : : DisplayRole , tr ( " Resumed (0) " ) ) ;
resumed - > setData ( Qt : : DecorationRole , QIcon ( " :/icons/resumed.svg " ) ) ;
resumed - > setData ( Qt : : DecorationRole , UIThemeManager : : instance ( ) - > getIcon ( QLatin1String ( " resumed " ) ) ) ;
auto * paused = new QListWidgetItem ( this ) ;
auto * paused = new QListWidgetItem ( this ) ;
paused - > setData ( Qt : : DisplayRole , tr ( " Paused (0) " ) ) ;
paused - > setData ( Qt : : DisplayRole , tr ( " Paused (0) " ) ) ;
paused - > setData ( Qt : : DecorationRole , QIcon ( " :/icons/paused.svg " ) ) ;
paused - > setData ( Qt : : DecorationRole , UIThemeManager : : instance ( ) - > getIcon ( QLatin1String ( " paused " ) ) ) ;
auto * active = new QListWidgetItem ( this ) ;
auto * active = new QListWidgetItem ( this ) ;
active - > setData ( Qt : : DisplayRole , tr ( " Active (0) " ) ) ;
active - > setData ( Qt : : DisplayRole , tr ( " Active (0) " ) ) ;
active - > setData ( Qt : : DecorationRole , QIcon ( " :/icons/filteractive.svg " ) ) ;
active - > setData ( Qt : : DecorationRole , UIThemeManager : : instance ( ) - > getIcon ( QLatin1String ( " filteractive " ) ) ) ;
auto * inactive = new QListWidgetItem ( this ) ;
auto * inactive = new QListWidgetItem ( this ) ;
inactive - > setData ( Qt : : DisplayRole , tr ( " Inactive (0) " ) ) ;
inactive - > setData ( Qt : : DisplayRole , tr ( " Inactive (0) " ) ) ;
inactive - > setData ( Qt : : DecorationRole , QIcon ( " :/icons/filterinactive.svg " ) ) ;
inactive - > setData ( Qt : : DecorationRole , UIThemeManager : : instance ( ) - > getIcon ( QLatin1String ( " filterinactive " ) ) ) ;
auto * stalled = new QListWidgetItem ( this ) ;
auto * stalled = new QListWidgetItem ( this ) ;
stalled - > setData ( Qt : : DisplayRole , tr ( " Stalled (0) " ) ) ;
stalled - > setData ( Qt : : DisplayRole , tr ( " Stalled (0) " ) ) ;
stalled - > setData ( Qt : : DecorationRole , QIcon ( " :/icons/filterstalled.svg " ) ) ;
stalled - > setData ( Qt : : DecorationRole , UIThemeManager : : instance ( ) - > getIcon ( QLatin1String ( " filterstalled " ) ) ) ;
auto * stalledUploading = new QListWidgetItem ( this ) ;
auto * stalledUploading = new QListWidgetItem ( this ) ;
stalledUploading - > setData ( Qt : : DisplayRole , tr ( " Stalled Uploading (0) " ) ) ;
stalledUploading - > setData ( Qt : : DisplayRole , tr ( " Stalled Uploading (0) " ) ) ;
stalledUploading - > setData ( Qt : : DecorationRole , QIcon ( " :/icons/stalledUP.svg " ) ) ;
stalledUploading - > setData ( Qt : : DecorationRole , UIThemeManager : : instance ( ) - > getIcon ( QLatin1String ( " stalledUP " ) ) ) ;
auto * stalledDownloading = new QListWidgetItem ( this ) ;
auto * stalledDownloading = new QListWidgetItem ( this ) ;
stalledDownloading - > setData ( Qt : : DisplayRole , tr ( " Stalled Downloading (0) " ) ) ;
stalledDownloading - > setData ( Qt : : DisplayRole , tr ( " Stalled Downloading (0) " ) ) ;
stalledDownloading - > setData ( Qt : : DecorationRole , QIcon ( " :/icons/stalledDL.svg " ) ) ;
stalledDownloading - > setData ( Qt : : DecorationRole , UIThemeManager : : instance ( ) - > getIcon ( QLatin1String ( " stalledDL " ) ) ) ;
auto * errored = new QListWidgetItem ( this ) ;
auto * errored = new QListWidgetItem ( this ) ;
errored - > setData ( Qt : : DisplayRole , tr ( " Errored (0) " ) ) ;
errored - > setData ( Qt : : DisplayRole , tr ( " Errored (0) " ) ) ;
errored - > setData ( Qt : : DecorationRole , QIcon ( " :/icons/error.svg " ) ) ;
errored - > setData ( Qt : : DecorationRole , UIThemeManager : : instance ( ) - > getIcon ( QLatin1String ( " error " ) ) ) ;
const Preferences * const pref = Preferences : : instance ( ) ;
const Preferences * const pref = Preferences : : instance ( ) ;
setCurrentRow ( pref - > getTransSelFilter ( ) , QItemSelectionModel : : SelectCurrent ) ;
setCurrentRow ( pref - > getTransSelFilter ( ) , QItemSelectionModel : : SelectCurrent ) ;