summaryrefslogtreecommitdiffstats
path: root/qt-models/divelocationmodel.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-07-14 18:43:47 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-14 14:54:01 -0700
commitcd3f10d5ad4124960b66112074797a16517117e9 (patch)
tree0863ac82d534553a53b640cc4dcf3cd20828849a /qt-models/divelocationmodel.h
parent4dfb39cc490ed889e872ff54437f70df3ed88553 (diff)
downloadsubsurface-cd3f10d5ad4124960b66112074797a16517117e9.tar.gz
Offer an option to just complete the text
Make the kids fight no more. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> 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 {