Changeset View
Changeset View
Standalone View
Standalone View
core/libs/widgets/metadata/countryselector.cpp
Context not available. | |||||
335 | 335 | | |||
---|---|---|---|---|---|
336 | void CountrySelector::setCountry(const QString& countryCode) | 336 | void CountrySelector::setCountry(const QString& countryCode) | ||
337 | { | 337 | { | ||
338 | // NOTE: if countryCode is empty or do not matches code map, unknow is selected from the list. | 338 | // NOTE: if countryCode is empty or do not matches code map, unknown is selected from the list. | ||
339 | 339 | | |||
340 | int id = count()-1; | 340 | int id = count()-1; | ||
341 | 341 | | |||
Context not available. | |||||
355 | 355 | | |||
356 | bool CountrySelector::country(QString& countryCode, QString& countryName) const | 356 | bool CountrySelector::country(QString& countryCode, QString& countryName) const | ||
357 | { | 357 | { | ||
358 | // Unknow is selected ? | 358 | // Unknown is selected ? | ||
359 | if (currentIndex() == count()-1) | 359 | if (currentIndex() == count()-1) | ||
360 | return false; | 360 | return false; | ||
361 | 361 | | |||
Context not available. |