-class DownloadViewItem : public QTreeWidgetItem {
-
- public:
- DownloadViewItem(QTreeWidget* parent, int type) :
- QTreeWidgetItem(parent, type = QTreeWidgetItem::UserType) {};
-
- DownloadViewItem(const QStringList& strings,
- int type = QTreeWidgetItem::UserType) :
- QTreeWidgetItem (strings, type = Type) {};
-
-
- /// @return An item comprising of string list, suitable for QTableView
- /// header.
- static DownloadViewItem *getHeaderItem()
- {
- DownloadViewItem *item
- = new DownloadViewItem(QStringList()
- << "Name"
- << "Size" << "Status"
- << "Progress" << "DL speed"
- << "UL speed" << "Seeds/Leechers"
- << "Ratio" << "ETA");
-
- return item;
- }
-
- /// @todo QTorrentHandle as one hidden column
+class DownloadViewItem : public QTreeWidgetItem
+{
+
+public:
+ DownloadViewItem(QTreeWidget* parent, int type) :
+ QTreeWidgetItem(parent, type = QTreeWidgetItem::UserType) {};
+
+ DownloadViewItem(const QStringList& strings,
+ int type = QTreeWidgetItem::UserType) :
+ QTreeWidgetItem (strings, type = Type) {};
+
+
+ /// @return An item comprising of string list, suitable for QTableView
+ /// header.
+ static DownloadViewItem *getHeaderItem()
+ {
+ DownloadViewItem *item
+ = new DownloadViewItem(QStringList()
+ << "Name"
+ << "Size" << "Status"
+ << "Progress" << "DL speed"
+ << "UL speed" << "Seeds/Leechers"
+ << "Ratio" << "ETA");
+
+ return item;
+ }
+
+ /// @todo QTorrentHandle as one hidden column