1
0
mirror of git://projects.qi-hardware.com/nanomap.git synced 2024-11-21 18:25:00 +02:00

emit a signal if the gps device got a fix

This commit is contained in:
Niels 2010-11-04 18:57:31 +01:00
parent fd81fcf1f0
commit 0dd2f334d0
2 changed files with 4 additions and 0 deletions

View File

@ -78,7 +78,10 @@ void GpsClient::readData()
}
}
if (mode > 1) {
emit fixed(true);
emit position(QPointF(lon, lat));
} else {
emit fixed(false);
}
}
}

View File

@ -41,6 +41,7 @@ signals:
void speed(qreal speed);
void connected();
void disconnected();
void fixed(bool fix);
private slots:
void readData();