+ // 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("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);
+ 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()), gps, SLOT(get_acwp()));
+ connect(source_gps, SIGNAL(clicked()), gps, SLOT(get_agnss()));
+
+ // main layout
+ location = new QWidget();
+ QHBoxLayout *layout_form = new QHBoxLayout();
+ layout_form->addLayout(layout_login);
+ layout_form->addLayout(layout_location);
+ QVBoxLayout *layout = new QVBoxLayout();
+ status = new QLineEdit("Ready");
+ status->setReadOnly(true);
+ status->setDisabled(true);
+ layout->addLayout(layout_form);
+ layout->addWidget(status);
+ layout->addLayout(layout_source);
+ location->setLayout(layout);