X-Git-Url: http://git.maemo.org/git/?p=googlelatitude;a=blobdiff_plain;f=src%2Flatitude.cpp;h=47e08e1cf58c0da5df1fb44507587f3ed379b055;hp=42f26b9bead38fc07b5c4ab44ecd7b4d4f927a1c;hb=dff93640a9b80a22d26ceeea520270cdf31a49e2;hpb=68a393779a3cb7be3636dc3045eed820a82a4c8e;ds=sidebyside diff --git a/src/latitude.cpp b/src/latitude.cpp index 42f26b9..47e08e1 100644 --- a/src/latitude.cpp +++ b/src/latitude.cpp @@ -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"));