| 184 | } |
| 185 | |
| 186 | LocationConfigTab::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 | |
| 214 | LocationConfigTab::~LocationConfigTab() |
| 215 | { |
nothing calls this directly
no test coverage detected