mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
Fix setting custom download location for watched folder
This commit is contained in:
parent
bc92f156c1
commit
ed7fb20758
2 changed files with 27 additions and 57 deletions
|
@ -46,18 +46,17 @@ class ScanFoldersDelegate : public QItemDelegate
|
|||
|
||||
public:
|
||||
ScanFoldersDelegate(QObject *parent, QTreeView *foldersView);
|
||||
~ScanFoldersDelegate();
|
||||
|
||||
private slots:
|
||||
void comboboxIndexChanged(int index);
|
||||
|
||||
private:
|
||||
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
|
||||
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &) const;
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
void setEditorData(QWidget *editor, const QModelIndex &index) const;
|
||||
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &index) const;
|
||||
|
||||
public slots:
|
||||
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
|
||||
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &) const;
|
||||
void comboboxIndexChanged(int index);
|
||||
|
||||
private:
|
||||
QTreeView *m_folderView;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue