MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / LocationConfigTab

Method LocationConfigTab

Settings/LocationConfigTab.cpp:186–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186LocationConfigTab::LocationConfigTab(QWidget *parent) :
187 ConfigTab(parent, "Location"),
188 ui(new Ui::LocationConfigTab)
189{
190 Suscan::Location loc;
191
192 ui->setupUi(this);
193
194 // Configure search box
195 this->ui->searchEdit->setClearButtonEnabled(true);
196 this->ui->searchEdit->addAction(
197 QIcon(":/icons/system-search.png"),
198 QLineEdit::LeadingPosition);
199
200 // Populate combos
201 this->populateLocations();
202
203 // Set some default location, just in case
204 loc.name = "Default site";
205 loc.country = "Spain";
206 loc.site.lat = +43.38670853735826;
207 loc.site.lon = -8.4077228557;
208 loc.site.height = 26e-3;
209
210 this->setLocation(loc);
211 this->connectAll();
212}
213
214LocationConfigTab::~LocationConfigTab()
215{

Callers

nothing calls this directly

Calls 3

populateLocationsMethod · 0.95
setLocationMethod · 0.95
connectAllMethod · 0.95

Tested by

no test coverage detected