Connect TankUseDelegate to its parrent
This plugs a memory leak found with valgrind. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
508f930660
commit
4af39b7e37
@ -289,9 +289,8 @@ QWidget *TankInfoDelegate::createEditor(QWidget *parent, const QStyleOptionViewI
|
||||
return delegate;
|
||||
}
|
||||
|
||||
TankUseDelegate::TankUseDelegate(QObject *parent)
|
||||
TankUseDelegate::TankUseDelegate(QObject *parent) : QStyledItemDelegate(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QWidget *TankUseDelegate::createEditor(QWidget * parent, const QStyleOptionViewItem & option, const QModelIndex & index) const
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user