Skip to content

Commit

Permalink
Update qgsgpsinformationwidget.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
bettellam committed Dec 8, 2022
1 parent 8ba3036 commit 94874a0
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/app/gps/qgsgpsinformationwidget.cpp
Expand Up @@ -269,12 +269,17 @@ void QgsGpsInformationWidget::gpsConnecting()
mTxtLatitude->clear();
mTxtLongitude->clear();
mTxtAltitude->clear();
mTxtAltitudeDiff->clear();
mTxtAltitudeEllipsoid->clear();
mTxtDateTime->clear();
mTxtSpeed->clear();
mTxtDirection->clear();
mTxtHdop->clear();
mTxtVdop->clear();
mTxtPdop->clear();
mTxtHacc->clear();
mTxtVacc->clear();
mTxt3Dacc->clear();
mTxtFixMode->clear();
mTxtFixType->clear();
mTxtQuality->clear();
Expand Down Expand Up @@ -328,6 +333,32 @@ void QgsGpsInformationWidget::updateTrackInformation()

void QgsGpsInformationWidget::gpsDisconnected()
{
// clear position page fields to give better indication that something happened (or didn't happen)
mTxtLatitude->clear();
mTxtLongitude->clear();
mTxtAltitude->clear();
mTxtAltitudeDiff->clear();
mTxtAltitudeEllipsoid->clear();
mTxtDateTime->clear();
mTxtSpeed->clear();
mTxtDirection->clear();
mTxtHdop->clear();
mTxtVdop->clear();
mTxtPdop->clear();
mTxtHacc->clear();
mTxtVacc->clear();
mTxt3Dacc->clear();
mTxtFixMode->clear();
mTxtFixType->clear();
mTxtQuality->clear();
mTxtSatellitesUsed->clear();
mTxtStatus->clear();

// Clear Plot Signal data
QVector<QPointF> data;
mCurve->setSamples( data );
mPlot->replot();

mGPSPlainTextEdit->appendPlainText( tr( "Disconnected…" ) );
}

Expand Down

0 comments on commit 94874a0

Please sign in to comment.