- Scrollbar added to column selector
[qtrapids] / src / client / DownloadView.cpp
index 7416ecb..275d268 100644 (file)
@@ -200,24 +200,24 @@ void DownloadView::restoreView()
 QString DownloadView::GetStatusString(TorrentStatus::Id status)
 {
        switch (status) {
-       case TorrentStatus::QUEUED_FOR_CHECKING :
-               return tr("Queued");
-       case TorrentStatus::CHECKING_FILES :
-               return tr("Checking");
-       case TorrentStatus::DOWNLOADING_METADATA :
-               return tr("DL meta");
-       case TorrentStatus::DOWNLOADING :
-               return tr("Downloading");
-       case TorrentStatus::FINISHED :
-               return tr("Finished");
-       case TorrentStatus::SEEDING :
-               return tr("Seeding");
-       case TorrentStatus::ALLOCATING :
-               return tr("Allocating");
-       case TorrentStatus::CHECKING_RESUME_DATA :
-               return tr("Checking resume");
-       default:
-               return tr("N/A");
+               case TorrentStatus::QUEUED_FOR_CHECKING :
+                       return tr("Queued");
+               case TorrentStatus::CHECKING_FILES :
+                       return tr("Checking");
+               case TorrentStatus::DOWNLOADING_METADATA :
+                       return tr("DL meta");
+               case TorrentStatus::DOWNLOADING :
+                       return tr("Downloading");
+               case TorrentStatus::FINISHED :
+                       return tr("Finished");
+               case TorrentStatus::SEEDING :
+                       return tr("Seeding");
+               case TorrentStatus::ALLOCATING :
+                       return tr("Allocating");
+               case TorrentStatus::CHECKING_RESUME_DATA :
+                       return tr("Checking resume");
+               default:
+                       return tr("N/A");
        }
 }
 
@@ -228,18 +228,18 @@ QColor DownloadView::GetStatusColor(TorrentStatus::Id status)
        QColor yellow(255,174,0);
 
        switch (status) {
-       case TorrentStatus::QUEUED_FOR_CHECKING :
-       case TorrentStatus::CHECKING_FILES :
-       case TorrentStatus::DOWNLOADING_METADATA :
-       case TorrentStatus::ALLOCATING :
-       case TorrentStatus::CHECKING_RESUME_DATA:
-               return yellow;
-       case TorrentStatus::DOWNLOADING :
-       case TorrentStatus::FINISHED :
-       case TorrentStatus::SEEDING :
-               return green;
-       default:
-               return QColor();
+               case TorrentStatus::QUEUED_FOR_CHECKING :
+               case TorrentStatus::CHECKING_FILES :
+               case TorrentStatus::DOWNLOADING_METADATA :
+               case TorrentStatus::ALLOCATING :
+               case TorrentStatus::CHECKING_RESUME_DATA:
+                       return yellow;
+               case TorrentStatus::DOWNLOADING :
+               case TorrentStatus::FINISHED :
+               case TorrentStatus::SEEDING :
+                       return green;
+               default:
+                       return QColor();
        }
 }