- Minor edit
authorlvaatamoinen <lassi.vaatamoinen@ixonos.com>
Mon, 2 Nov 2009 12:40:36 +0000 (12:40 +0000)
committerlvaatamoinen <lassi.vaatamoinen@ixonos.com>
Mon, 2 Nov 2009 12:40:36 +0000 (12:40 +0000)
git-svn-id: file:///svnroot/qtrapids/trunk@17 42ac0dd5-4c8c-4c71-bb3e-ecdfe252ffda

src/gui/DownloadView.cpp

index d7424b0..5d616d8 100644 (file)
@@ -129,7 +129,8 @@ void DownloadView::removeItem(QTorrentHandle handle)
 
 
 void DownloadView::on_itemClicked(QTreeWidgetItem * item, int column)
 
 
 void DownloadView::on_itemClicked(QTreeWidgetItem * item, int column)
-{/*
+{
+       /*
        qDebug() << "DownloadView::on_itemClicked(()" << item << "," << column;
        qDebug() << "current item" << currentItem();
        
        qDebug() << "DownloadView::on_itemClicked(()" << item << "," << column;
        qDebug() << "current item" << currentItem();
        
@@ -144,21 +145,21 @@ QString DownloadView::GetStatusString(QTorrentHandle::State const& status) const
 {
        switch (status) {
                case QTorrentHandle::QUEUED_FOR_CHECKING :
 {
        switch (status) {
                case QTorrentHandle::QUEUED_FOR_CHECKING :
-                       return "Queued";
+                       return tr("Queued");
                case QTorrentHandle::CHECKING_FILES :
                case QTorrentHandle::CHECKING_FILES :
-                       return "Checking";
+                       return tr("Checking");
                case QTorrentHandle::DOWNLOADING_METADATA :
                case QTorrentHandle::DOWNLOADING_METADATA :
-                       return "DL meta";
+                       return tr("DL meta");
                case QTorrentHandle::DOWNLOADING :
                case QTorrentHandle::DOWNLOADING :
-                       return "Downloading";
+                       return tr("Downloading");
                case QTorrentHandle::FINISHED :
                case QTorrentHandle::FINISHED :
-                       return "Finished";
+                       return tr("Finished");
                case QTorrentHandle::SEEDING :
                case QTorrentHandle::SEEDING :
-                       return "Seeding"; 
+                       return tr("Seeding"); 
                case QTorrentHandle::ALLOCATING :
                case QTorrentHandle::ALLOCATING :
-                       return "Allocating";
+                       return tr("Allocating");
                default:
                default:
-                       return "N/A";
+                       return tr("N/A");
        }
 }
 
        }
 }
 
@@ -181,5 +182,4 @@ QColor DownloadView::GetStatusColor(QTorrentHandle::State const& status) const
                default:
                        return QColor();
        }
                default:
                        return QColor();
        }
-               
 }
\ No newline at end of file
 }
\ No newline at end of file