- Added drag'n Drop from torrent list to labels (for torrent labeling)

- Fix label counters update in some cases
This commit is contained in:
Christophe Dumez 2009-12-16 14:55:07 +00:00
parent 868d423c82
commit 18bd3b855c
5 changed files with 77 additions and 7 deletions

View file

@ -52,7 +52,6 @@
TransferListWidget::TransferListWidget(QWidget *parent, GUI *main_window, Bittorrent *_BTSession):
QTreeView(parent), BTSession(_BTSession), main_window(main_window) {
QSettings settings("qBittorrent", "qBittorrent");
// Create and apply delegate
listDelegate = new TransferListDelegate(this);
@ -103,6 +102,7 @@ TransferListWidget::TransferListWidget(QWidget *parent, GUI *main_window, Bittor
setSelectionMode(QAbstractItemView::ExtendedSelection);
setItemsExpandable(false);
setAutoScroll(true);
setDragDropMode(QAbstractItemView::DragOnly);
hideColumn(TR_PRIORITY);
//hideColumn(TR_LABEL);