|
|
|
@ -200,6 +200,9 @@ class torrentAdditionDialog : public QDialog, private Ui_addTorrentDialog{
@@ -200,6 +200,9 @@ class torrentAdditionDialog : public QDialog, private Ui_addTorrentDialog{
|
|
|
|
|
if(index.column() == PRIORITY){ |
|
|
|
|
PropListModel->setData(index, QVariant(IGNORED)); |
|
|
|
|
} |
|
|
|
|
for(int i=0; i<PropListModel->columnCount(); ++i){ |
|
|
|
|
PropListModel->setData(PropListModel->index(index.row(), i), QVariant(QColor("red")), Qt::ForegroundRole); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -210,6 +213,9 @@ class torrentAdditionDialog : public QDialog, private Ui_addTorrentDialog{
@@ -210,6 +213,9 @@ class torrentAdditionDialog : public QDialog, private Ui_addTorrentDialog{
|
|
|
|
|
if(index.column() == PRIORITY){ |
|
|
|
|
PropListModel->setData(index, QVariant(NORMAL)); |
|
|
|
|
} |
|
|
|
|
for(int i=0; i<PropListModel->columnCount(); ++i){ |
|
|
|
|
PropListModel->setData(PropListModel->index(index.row(), i), QVariant(QColor("green")), Qt::ForegroundRole); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -220,6 +226,9 @@ class torrentAdditionDialog : public QDialog, private Ui_addTorrentDialog{
@@ -220,6 +226,9 @@ class torrentAdditionDialog : public QDialog, private Ui_addTorrentDialog{
|
|
|
|
|
if(index.column() == PRIORITY){ |
|
|
|
|
PropListModel->setData(index, QVariant(HIGH)); |
|
|
|
|
} |
|
|
|
|
for(int i=0; i<PropListModel->columnCount(); ++i){ |
|
|
|
|
PropListModel->setData(PropListModel->index(index.row(), i), QVariant(QColor("green")), Qt::ForegroundRole); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -230,6 +239,9 @@ class torrentAdditionDialog : public QDialog, private Ui_addTorrentDialog{
@@ -230,6 +239,9 @@ class torrentAdditionDialog : public QDialog, private Ui_addTorrentDialog{
|
|
|
|
|
if(index.column() == PRIORITY){ |
|
|
|
|
PropListModel->setData(index, QVariant(MAXIMUM)); |
|
|
|
|
} |
|
|
|
|
for(int i=0; i<PropListModel->columnCount(); ++i){ |
|
|
|
|
PropListModel->setData(PropListModel->index(index.row(), i), QVariant(QColor("green")), Qt::ForegroundRole); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|