mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Fixed a bug in the number of finished torrents initial display
- Started to clean up rss.h
This commit is contained in:
parent
d323dcd4e0
commit
381ae195b9
7 changed files with 16 additions and 44 deletions
|
@ -44,7 +44,6 @@ properties::properties(QWidget *parent, torrent_handle &h, QStringList trackerEr
|
|||
filesList->setModel(PropListModel);
|
||||
PropDelegate = new PropListDelegate();
|
||||
filesList->setItemDelegate(PropDelegate);
|
||||
// connect(filesList, SIGNAL(doubleClicked(const QModelIndex&)), this, SLOT(toggleSelectedState(const QModelIndex&)));
|
||||
connect(filesList, SIGNAL(clicked(const QModelIndex&)), filesList, SLOT(edit(const QModelIndex&)));
|
||||
connect(addTracker_button, SIGNAL(clicked()), this, SLOT(askForTracker()));
|
||||
connect(removeTracker_button, SIGNAL(clicked()), this, SLOT(deleteSelectedTrackers()));
|
||||
|
@ -303,30 +302,6 @@ void properties::setAllPiecesState(bool selected){
|
|||
}
|
||||
}
|
||||
|
||||
// Toggle the selected state of a file within the torrent when we
|
||||
// double click on it.
|
||||
// void properties::toggleSelectedState(const QModelIndex& index){
|
||||
// int row = index.row();
|
||||
// if(selectionBitmask.at(row)){
|
||||
// // File is selected
|
||||
// selectionBitmask.erase(selectionBitmask.begin()+row);
|
||||
// selectionBitmask.insert(selectionBitmask.begin()+row, 0);
|
||||
// // Update list infos
|
||||
// setRowColor(row, "green");
|
||||
// PropListModel->setData(PropListModel->index(row, SELECTED), QVariant(true));
|
||||
// }else{
|
||||
// // File is not selected
|
||||
// selectionBitmask.erase(selectionBitmask.begin()+row);
|
||||
// selectionBitmask.insert(selectionBitmask.begin()+row, 1);
|
||||
// // Update list infos
|
||||
// setRowColor(row, "red");
|
||||
// PropListModel->setData(PropListModel->index(row, SELECTED), QVariant(false));
|
||||
// }
|
||||
// h.filter_files(selectionBitmask);
|
||||
// // Save filtered pieces to a file to remember them
|
||||
// saveFilteredFiles();
|
||||
// }
|
||||
|
||||
void properties::on_incrementalDownload_stateChanged(int){
|
||||
qDebug("Incremental download toggled");
|
||||
torrent_info torrentInfo = h.get_torrent_info();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue