Skip to content

Commit

Permalink
Update qgsgpsinformationwidget.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
bettellam authored Aug 10, 2024
1 parent ad64862 commit a70abca
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/app/gps/qgsgpsinformationwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,18 +423,18 @@ void QgsGpsInformationWidget::displayGPSInformation( const QgsGpsInformation &in
QwtSymbol::Style symbolStyle;
if ( currentInfo.satType == 'P' ) {
symbolStyle = QwtSymbol::Ellipse; // GPS;
QBrush symbolBrush( Qt::limegreen );
myColor = QColor( 50 , 205 , 20 ); //Qt::limegreen;
QBrush symbolBrush( QColor( 50 , 205 , 20 ) );
myColor = QColor( 50 , 205 , 20 ); //limegreen;
}
else if ( currentInfo.satType == 'L' ) {
symbolStyle = QwtSymbol::Rect; // GLONASS;
QBrush symbolBrush( Qt::orange );
myColor = QColor( 255 , 165 , 0 ); //Qt::orange;
QBrush symbolBrush( QColor( 255 , 165 , 0 ) );
myColor = QColor( 255 , 165 , 0 ); //orange;
}
else if ( currentInfo.satType == 'B' ) {
symbolStyle = QwtSymbol::Diamond; // BEIDOU;
QBrush symbolBrush( Qt::purple );
myColor = QColor( 128 , 0 , 128 ); //Qt::purple;
QBrush symbolBrush( QColor( 128 , 0 , 128 ) );
myColor = QColor( 128 , 0 , 128 ); //purple;
}
else if ( currentInfo.satType == 'A' ) {
symbolStyle = QwtSymbol::Triangle; //GALILEO
Expand All @@ -448,14 +448,18 @@ void QgsGpsInformationWidget::displayGPSInformation( const QgsGpsInformation &in
}
else {
symbolStyle = QwtSymbol::Ellipse; // N, S;
QBrush symbolBrush( Qt::black );
myColor = Qt::black;
QBrush symbolBrush( Qt::gray );
myColor = Qt::gray;
}
if ( currentInfo.signal < 30 ) //weak signal
{
QBrush symbolBrush( Qt::red );
myColor = Qt::red;
}
if ( currentInfo.inUse )
{
myColor = Qt::black;
}

#if (QWT_POLAR_VERSION<0x010000)
mypMarker->setSymbol( QwtSymbol( symbolStyle,
Expand Down

0 comments on commit a70abca

Please sign in to comment.