[PATCH 04/17] Connect TankUseDelegate to its parrent
Anton Lundin
glance at acc.umu.se
Wed Dec 17 23:47:45 PST 2014
This plugs a memory leak found with valgrind.
Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
qt-ui/modeldelegates.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp
index 6eac66f..d2bdadc 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
--
2.1.0
More information about the subsurface
mailing list