summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Boris Barbulovski <bbarbulovski@gmail.com>2014-02-11 18:50:44 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-11 12:36:53 -0800
commita3d82bf9b1bf7a25e20e75aceeafe80cbc4f78f3 (patch)
tree97e0c76ed56d5870a8ca05a46af842c19ab59f82 /qt-ui
parent507a929a27d31eaf077437674e6ec3cdaaed34d2 (diff)
downloadsubsurface-a3d82bf9b1bf7a25e20e75aceeafe80cbc4f78f3.tar.gz
Update #include statement for QStringListModel
Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/diveplanner.cpp1
-rw-r--r--qt-ui/diveplanner.h1
-rw-r--r--qt-ui/downloadfromdivecomputer.h2
-rw-r--r--qt-ui/modeldelegates.cpp1
-rw-r--r--qt-ui/models.cpp1
5 files changed, 2 insertions, 4 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp
index 33cb80ff9..f551840ec 100644
--- a/qt-ui/diveplanner.cpp
+++ b/qt-ui/diveplanner.cpp
@@ -16,7 +16,6 @@
#include <QDebug>
#include <QGraphicsSceneMouseEvent>
#include <QMessageBox>
-#include <QStringListModel>
#include <QListView>
#include <QModelIndex>
#include <QSettings>
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h
index 5ed5b0568..3c81c8620 100644
--- a/qt-ui/diveplanner.h
+++ b/qt-ui/diveplanner.h
@@ -10,7 +10,6 @@
#include "dive.h"
class QListView;
-class QStringListModel;
class QModelIndex;
class DivePlannerPointsModel : public QAbstractTableModel{
diff --git a/qt-ui/downloadfromdivecomputer.h b/qt-ui/downloadfromdivecomputer.h
index f18170fd9..c1c5aab7b 100644
--- a/qt-ui/downloadfromdivecomputer.h
+++ b/qt-ui/downloadfromdivecomputer.h
@@ -5,6 +5,7 @@
#include <QThread>
#include <QHash>
#include <QMap>
+#include <QStringListModel>
#include "../libdivecomputer.h"
#include "ui_downloadfromdivecomputer.h"
@@ -19,7 +20,6 @@ private:
device_data_t *data;
};
-class QStringListModel;
class DownloadFromDCWidget : public QDialog{
Q_OBJECT
public:
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp
index b9340106a..5e5bc9353 100644
--- a/qt-ui/modeldelegates.cpp
+++ b/qt-ui/modeldelegates.cpp
@@ -16,7 +16,6 @@
#include <QLineEdit>
#include <QKeyEvent>
#include <QAbstractItemView>
-#include <QStringListModel>
#include <QApplication>
QSize DiveListDelegate::sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index a1494880d..93bc446ef 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -23,6 +23,7 @@
#include <QFont>
#include <QIcon>
#include <QMessageBox>
+#include <QStringListModel>
QFont defaultModelFont()
{