summaryrefslogtreecommitdiffstats
path: root/examples/charts/barmodelmapper/tablewidget.h
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2014-11-11 11:17:04 +0200
committerMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2014-11-11 11:31:38 +0200
commitc6ed50e68438e5558e7cda0e36c194a4b99f7f83 (patch)
tree8cbb330dc82eae3cb11b2202ba0f34bc6e6988bf /examples/charts/barmodelmapper/tablewidget.h
parenta686cb49be8689c5e306e895062f47c37a4f908d (diff)
Plugged some memory leaks.
Autotests were also made Valgrind friendly by adding a final one millisecond wait to the end of the test to allow pending deleteLaters to run. Also some minor cosmetic cleanup done to autotests. Change-Id: Ic3719167a22949f243eaf54614e174a681dbe34a Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
Diffstat (limited to 'examples/charts/barmodelmapper/tablewidget.h')
-rw-r--r--examples/charts/barmodelmapper/tablewidget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/charts/barmodelmapper/tablewidget.h b/examples/charts/barmodelmapper/tablewidget.h
index 126d3066..d19a00b1 100644
--- a/examples/charts/barmodelmapper/tablewidget.h
+++ b/examples/charts/barmodelmapper/tablewidget.h
@@ -22,6 +22,7 @@
#define TABLEWIDGET_H
#include <QtWidgets/QWidget>
+#include "customtablemodel.h"
class TableWidget : public QWidget
{
@@ -29,6 +30,9 @@ class TableWidget : public QWidget
public:
TableWidget(QWidget *parent = 0);
+
+private:
+ CustomTableModel *m_model;
};
#endif // TABLEWIDGET_H