From 4af39b7e37f6b8ecf0dceac0dfd22b91cb4c09d6 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Thu, 18 Dec 2014 10:47:00 -0800 Subject: Connect TankUseDelegate to its parrent This plugs a memory leak found with valgrind. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/modeldelegates.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp index 6eac66f87..d2bdadc3b 100644 --- a/qt-ui/modeldelegates.cpp +++ b/qt-ui/modeldelegates.cpp @@ -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 -- cgit v1.2.3-70-g09d2