mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Added buttons to change trackers priority (libtorrent v0.14 only)
This commit is contained in:
parent
3c4906bb4d
commit
27e980de28
3 changed files with 200 additions and 13 deletions
|
@ -99,7 +99,14 @@ PropertiesWidget::PropertiesWidget(QWidget *parent, GUI* main_window, TransferLi
|
|||
ProgressHLayout_2->insertWidget(1, pieces_availability);
|
||||
// Tracker list
|
||||
trackerList = new TrackerList(this);
|
||||
verticalLayout_trackers->addWidget(trackerList);
|
||||
#ifdef LIBTORRENT_0_15
|
||||
trackerUpButton->setVisible(false);
|
||||
trackerDownButton->setVisible(false);
|
||||
#else
|
||||
connect(trackerUpButton, SIGNAL(clicked()), trackerList, SLOT(moveSelectionUp()));
|
||||
connect(trackerDownButton, SIGNAL(clicked()), trackerList, SLOT(moveSelectionDown()));
|
||||
#endif
|
||||
horizontalLayout_trackers->insertWidget(0, trackerList);
|
||||
// Peers list
|
||||
peersList = new PeerListWidget(this);
|
||||
peerpage_layout->addWidget(peersList);
|
||||
|
@ -119,7 +126,6 @@ PropertiesWidget::~PropertiesWidget() {
|
|||
delete PropDelegate;
|
||||
}
|
||||
|
||||
|
||||
void PropertiesWidget::showPiecesAvailability(bool show) {
|
||||
avail_pieces_lbl->setVisible(show);
|
||||
pieces_availability->setVisible(show);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue