summaryrefslogtreecommitdiffstats
path: root/qt-models/divelocationmodel.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-14 15:33:28 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-14 15:33:28 -0700
commit9d622996bae40bf94feaa603282af973d48eeab1 (patch)
treee3d1f8a9e817b96a18979b88f6ba69bf3b797b2b /qt-models/divelocationmodel.h
parent70656cddead4eaf3382d16af7be4898a34cbdec1 (diff)
parent536469107d94f265a03e44fcc755b92b9016cbca (diff)
downloadsubsurface-9d622996bae40bf94feaa603282af973d48eeab1.tar.gz
Merge branch 'tomaz'
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divelocationmodel.h')
-rw-r--r--qt-models/divelocationmodel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-models/divelocationmodel.h b/qt-models/divelocationmodel.h
index 8cae3a08a..ee52d2ba4 100644
--- a/qt-models/divelocationmodel.h
+++ b/qt-models/divelocationmodel.h
@@ -5,6 +5,8 @@
#include <QStringListModel>
#include <stdint.h>
+class QLineEdit;
+
class LocationInformationModel : public QAbstractTableModel {
Q_OBJECT
public:
@@ -16,12 +18,14 @@ public:
int32_t addDiveSite(const QString& name, int lat = 0, int lon = 0);
bool setData(const QModelIndex &index, const QVariant &value, int role);
bool removeRows(int row, int count, const QModelIndex & parent = QModelIndex());
+ void setFirstRowTextField(QLineEdit *textField);
public slots:
void update();
private:
LocationInformationModel(QObject *obj = 0);
int internalRowCount;
+ QLineEdit *textField;
};
class GeoReferencingOptionsModel : public QStringListModel {