Setup parent pointer

Rely on Qt to do the delete, since the parent ownership is setup
correctly.
This commit is contained in:
Chocobo1
2017-03-08 13:01:59 +08:00
parent a16c557137
commit 86e82c71e5
5 changed files with 7 additions and 11 deletions

View File

@@ -54,7 +54,7 @@ class PropListDelegate : public QItemDelegate
Q_OBJECT
public:
PropListDelegate(PropertiesWidget *properties = 0, QObject *parent = 0);
PropListDelegate(PropertiesWidget *properties);
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
void setEditorData(QWidget *editor, const QModelIndex &index) const;