From 1b1d3a18a8fffdd61f533fd4b0bde4f75d683212 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 27 Jul 2013 07:18:32 +0200 Subject: Cleanup closeEvent Don't try to delete all the prepared statements manually. Get rid of the ~destructors and just close the QSqlDatabase. close() deletes all Statements. Also, quit() all QThreads on closeEvent() except CompleterProducer. When the experimental archive view gets merged, that QThread is gone. No need to bother... --- mappingtableeditor.h | 1 - 1 file changed, 1 deletion(-) (limited to 'mappingtableeditor.h') diff --git a/mappingtableeditor.h b/mappingtableeditor.h index cbdacf9..f09483e 100644 --- a/mappingtableeditor.h +++ b/mappingtableeditor.h @@ -56,7 +56,6 @@ class MappingTableEditorModel : public SmTreeModel { enum Roles { NameRole = Qt::UserRole + 1, CountRole = Qt::UserRole +2, IdRole = Qt::UserRole + 3 }; enum Fields { Name = 0, Count = 1, Id = 2 }; explicit MappingTableEditorModel(const QString &table, const QStringList &headers, QObject *parent = 0); - virtual ~MappingTableEditorModel(); virtual Qt::ItemFlags flags(const QModelIndex &idx) const; virtual QVariant data(const QModelIndex &index, int role) const; virtual bool setData(const QModelIndex &idx, const QVariant &value, int role); -- cgit v1.2.3-70-g09d2