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>
This commit is contained in:
Tomaz Canabrava 2015-07-14 18:43:47 -03:00 committed by Dirk Hohndel
parent 4dfb39cc49
commit cd3f10d5ad
4 changed files with 73 additions and 9 deletions

View file

@ -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 {