Use QStyledItemDelegate for content views

This commit is contained in:
jagannatharjun
2020-07-18 13:30:26 +05:30
parent 8eecfb1bee
commit 4733cb59e4
2 changed files with 14 additions and 10 deletions

View File

@@ -29,7 +29,7 @@
#ifndef PROPLISTDELEGATE_H
#define PROPLISTDELEGATE_H
#include <QItemDelegate>
#include <QStyledItemDelegate>
class QAbstractItemModel;
class QModelIndex;
@@ -49,7 +49,7 @@ enum PropColumn
AVAILABILITY
};
class PropListDelegate final : public QItemDelegate
class PropListDelegate final : public QStyledItemDelegate
{
Q_OBJECT