Gps list: include the time_t timestamp in the model

Just having the string means we lost the unique value that we can use as key to
indentify a specific GPS fix.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-01-08 23:13:30 -08:00
parent b34a507d51
commit 249a2c2c09
3 changed files with 7 additions and 3 deletions

View file

@ -14,7 +14,8 @@ public:
GpsDateRole = Qt::UserRole + 1,
GpsNameRole,
GpsLatitudeRole,
GpsLongitudeRole
GpsLongitudeRole,
GpsWhenRole
};
static GpsListModel *instance();