From 8dd92fe612e70cec9eda40e65fd0e026a05be4b6 Mon Sep 17 00:00:00 2001 From: jagannatharjun Date: Sun, 19 Jul 2020 00:54:12 +0530 Subject: [PATCH] Use QStyledItemDelegate as base for ScanFoldersDelegate --- src/gui/scanfoldersdelegate.cpp | 2 +- src/gui/scanfoldersdelegate.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/scanfoldersdelegate.cpp b/src/gui/scanfoldersdelegate.cpp index 136df25c2..01e96d751 100644 --- a/src/gui/scanfoldersdelegate.cpp +++ b/src/gui/scanfoldersdelegate.cpp @@ -37,7 +37,7 @@ #include "base/scanfoldersmodel.h" ScanFoldersDelegate::ScanFoldersDelegate(QObject *parent, QTreeView *foldersView) - : QItemDelegate(parent) + : QStyledItemDelegate(parent) , m_folderView(foldersView) { } diff --git a/src/gui/scanfoldersdelegate.h b/src/gui/scanfoldersdelegate.h index 3502f6342..cdc1d2759 100644 --- a/src/gui/scanfoldersdelegate.h +++ b/src/gui/scanfoldersdelegate.h @@ -29,7 +29,7 @@ #ifndef SCANFOLDERSDELEGATE_H #define SCANFOLDERSDELEGATE_H -#include +#include class QAbstractItemModel; class QModelIndex; @@ -39,7 +39,7 @@ class QTreeView; class PropertiesWidget; -class ScanFoldersDelegate final : public QItemDelegate +class ScanFoldersDelegate final : public QStyledItemDelegate { Q_OBJECT