mirror of
git://projects.qi-hardware.com/nanomap.git
synced 2024-11-24 18:09:44 +02:00
emit a signal if the gps device got a fix
This commit is contained in:
parent
fd81fcf1f0
commit
0dd2f334d0
@ -78,7 +78,10 @@ void GpsClient::readData()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (mode > 1) {
|
if (mode > 1) {
|
||||||
|
emit fixed(true);
|
||||||
emit position(QPointF(lon, lat));
|
emit position(QPointF(lon, lat));
|
||||||
|
} else {
|
||||||
|
emit fixed(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -41,6 +41,7 @@ signals:
|
|||||||
void speed(qreal speed);
|
void speed(qreal speed);
|
||||||
void connected();
|
void connected();
|
||||||
void disconnected();
|
void disconnected();
|
||||||
|
void fixed(bool fix);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void readData();
|
void readData();
|
||||||
|
Loading…
Reference in New Issue
Block a user