+ // location layout
+ QFormLayout *layout_location = new QFormLayout();
+ layout_location->addRow(tr("lat :"), location_lat);
+ layout_location->addRow(tr("lon :"), location_lon);
+ layout_location->addRow(tr("acc :"), location_acc);
+
+ // source button
+ QPushButton *source_loc = new QPushButton(tr("&loc"));
+ QPushButton *source_cell = new QPushButton(tr("&cell"));
+ QPushButton *source_gps = new QPushButton(tr("&gps"));
+ // source layout
+ QHBoxLayout *layout_source = new QHBoxLayout();
+ layout_source->addWidget(source_loc);
+ layout_source->addWidget(source_cell);
+ layout_source->addWidget(source_gps);
+ // source connect
+ connect(source_loc, SIGNAL(clicked()), glatitude, SLOT(get()));
+ connect(source_cell, SIGNAL(clicked()), this, SLOT(get_cell()));
+ connect(source_gps, SIGNAL(clicked()), this, SLOT(get_gps()));
+
+ // main layout
+ location = new QWidget();
+ QHBoxLayout *layout_form = new QHBoxLayout();
+ layout_form->addLayout(layout_login);
+ layout_form->addLayout(layout_location);
+ QVBoxLayout *layout = new QVBoxLayout();
+ layout->addLayout(layout_form);
+ layout->addLayout(layout_source);
+ location->setLayout(layout);