diff-gpsinformationwidget-_final-2_10_1_.txt

Steven Mizuno, 2015-08-19 10:30 AM

Download (874 Bytes)

 
1
diff --git a/src/app/gps/qgsgpsinformationwidget.cpp b/src/app/gps/qgsgpsinformationwidget.cpp
2
index 21a3705..0f76a71 100644
3
--- a/src/app/gps/qgsgpsinformationwidget.cpp
4
+++ b/src/app/gps/qgsgpsinformationwidget.cpp
5
@@ -203,10 +203,17 @@ QgsGPSInformationWidget::QgsGPSInformationWidget( QgsMapCanvas * thepCanvas, QWi
6
   {
7
     mRadGpsd->setChecked( true );
8
   }
9
-  //disable the internal port method if build is without QtLocation
10
+  //hide the internal port method if build is without QtLocation
11
 #ifndef HAVE_QT_MOBILITY_LOCATION
12
-  mRadInternal->setDisabled( true );
13
-  mRadAutodetect->setChecked( true );
14
+  if ( mRadInternal->isChecked() )
15
+  {
16
+    mRadAutodetect->setChecked( true );
17
+  }
18
+  mRadInternal->hide();
19
+  mLblHacc->hide();
20
+  mLblVacc->hide();
21
+  mTxtHacc->hide();
22
+  mTxtVacc->hide();
23
 #endif
24
 
25
   //auto digitising behaviour