1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-05 11:24:15 +00:00

Merge pull request #13158 from jagannatharjun/scanfolder

Use QStyledItemDelegate as base for ScanFoldersDelegate
This commit is contained in:
Mike Tzou 2020-07-20 12:38:37 +08:00 committed by GitHub
commit 9cf2321f02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@
#include "base/scanfoldersmodel.h" #include "base/scanfoldersmodel.h"
ScanFoldersDelegate::ScanFoldersDelegate(QObject *parent, QTreeView *foldersView) ScanFoldersDelegate::ScanFoldersDelegate(QObject *parent, QTreeView *foldersView)
: QItemDelegate(parent) : QStyledItemDelegate(parent)
, m_folderView(foldersView) , m_folderView(foldersView)
{ {
} }

View File

@ -29,7 +29,7 @@
#ifndef SCANFOLDERSDELEGATE_H #ifndef SCANFOLDERSDELEGATE_H
#define SCANFOLDERSDELEGATE_H #define SCANFOLDERSDELEGATE_H
#include <QItemDelegate> #include <QStyledItemDelegate>
class QAbstractItemModel; class QAbstractItemModel;
class QModelIndex; class QModelIndex;
@ -39,7 +39,7 @@ class QTreeView;
class PropertiesWidget; class PropertiesWidget;
class ScanFoldersDelegate final : public QItemDelegate class ScanFoldersDelegate final : public QStyledItemDelegate
{ {
Q_OBJECT Q_OBJECT