1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

- Fix file prioritizing in a torrent

This commit is contained in:
Christophe Dumez 2010-02-08 18:49:04 +00:00
parent 240c3508fe
commit fe8d5a3528

View File

@ -155,6 +155,7 @@ public slots:
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const {
QComboBox *combobox = static_cast<QComboBox*>(editor);
int value = combobox->currentIndex();
qDebug("PropListDelegate: setModelData(%d)", value);
switch(value) {
case 1:
model->setData(index, 2); // HIGH
@ -165,6 +166,7 @@ public slots:
default:
model->setData(index, 1); // NORMAL
}
emit filteredFilesChanged();
}
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &/* index */) const {