cell/gps only on maemo5
[googlelatitude] / src / latitude.cpp
index 42f26b9..47e08e1 100644 (file)
@@ -124,9 +124,9 @@ void LatitudeGUI::show_lat() {
     layout_location->addRow(tr("acc :"), location_acc);
 
     // source button
-    QPushButton *source_loc = new QPushButton(tr("Auto &loc"));
-    QPushButton *source_cell = new QPushButton(tr("Auto &cell"));
-    QPushButton *source_gps = new QPushButton(tr("Auto &gps"));
+    QPushButton *source_loc = new QPushButton(tr("Update with &IP"));
+    QPushButton *source_cell = new QPushButton(tr("Update with &Cell"));
+    QPushButton *source_gps = new QPushButton(tr("Update with &Gps"));
     // source layout
     QHBoxLayout *layout_source = new QHBoxLayout();
     layout_source->addWidget(source_loc);
@@ -151,6 +151,12 @@ void LatitudeGUI::show_lat() {
     layout->addLayout(layout_source);
     location->setLayout(layout);
 
+    // gps enable only on maemo5
+#ifndef Q_WS_MAEMO_5
+    source_cell->setDisabled(1);
+    source_gps->setDisabled(1);
+#endif
+
     // set widget
     setCentralWidget(location);
     setWindowTitle(tr("Google Latitude Updater"));