diff options
author | Arno <am@disconnect.de> | 2010-11-27 14:02:42 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-11-27 14:02:42 +0100 |
commit | a67257ebc9354933fafe1bd252568819ead79552 (patch) | |
tree | dede68fa77875c8e06fb55a7ba3563e121d93b5f /archivetreeview.h | |
parent | d4d7d583bccd653499fc7fb988955209d443edae (diff) | |
download | SheMov-a67257ebc9354933fafe1bd252568819ead79552.tar.gz SheMov-a67257ebc9354933fafe1bd252568819ead79552.tar.bz2 SheMov-a67257ebc9354933fafe1bd252568819ead79552.zip |
Streamline database access
An unsuccessfull attempt to get rid of the warning "connection treedb is
still in use..." by trying to delete all queries and setting mDb to
QSqlDatabase() in the destructor.
Strangely enough, the warning is only issued from inside QtCreator...
Maybe it's some kind of race.
Diffstat (limited to 'archivetreeview.h')
-rw-r--r-- | archivetreeview.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archivetreeview.h b/archivetreeview.h index 2789298..a9d2266 100644 --- a/archivetreeview.h +++ b/archivetreeview.h @@ -80,7 +80,7 @@ class NoCoverMovieModel : public SmTreeModel { enum CustomRoles { SeriesNameRole = Qt::UserRole + 1, SeriesPartRole = Qt::UserRole + 2, SeriesIdRole = Qt::UserRole + 3 }; enum Fields { Display = 0, SeriesName = 1, SeriesPart = 2, SeriesId = 3 }; explicit NoCoverMovieModel(const QStringList &headers, QObject *parent = 0); - virtual ~NoCoverMovieModel() {} + virtual ~NoCoverMovieModel(); virtual QVariant data(const QModelIndex &index, int role) const; Qt::ItemFlags flags(const QModelIndex &index) const; |