48,6 → 48,10 |
#include "ui_authenticationdialog.h" |
#include "wmscapabilitieswidget.h" |
|
#if QT_VERSION < 0x040500 |
QStringList removeDuplicates(QStringList &sl); |
#endif |
|
// The capital cities from all countries of the world |
// Source: Wikipedia, Google |
CITIES Cities[] = { |
254,8 → 258,11 |
akt = akt->next; |
} |
|
#if QT_VERSION >= 0x040500 |
sl.removeDuplicates(); |
|
#else |
removeDuplicates(sl); |
#endif |
for (i = 0; i < sl.size(); ++i) |
dlg->addDate(sl.at(i)); |
} |
1506,9 → 1513,11 |
|
akt = akt->next; |
} |
|
#if QT_VERSION >= 0x040500 |
sl.removeDuplicates(); |
|
#else |
removeDuplicates(sl); |
#endif |
if (sl.contains("EPSG:4326") || sl.contains("WGS:84")) |
srs = QString("EPSG:4326"); |
else |
1533,8 → 1542,11 |
akt = akt->next; |
} |
|
#if QT_VERSION >= 0x040500 |
sl.removeDuplicates(); |
|
#else |
removeDuplicates(sl); |
#endif |
if (sl.contains("EPSG:4326") || sl.contains("CRS:84")) |
crs = QString("EPSG:4326"); |
else |
1682,5 → 1694,21 |
maxy = cy - (levY / 2.0); |
} |
|
#if QT_VERSION < 0x040500 |
QStringList removeDuplicates(QStringList &sl) |
{ |
QStringList res; |
|
for (int i = 0; i < sl.size(); i++) |
{ |
if (res.indexOf(sl.at(i)) == -1) |
res << sl.at(i); |
} |
|
sl = res; |
return res; |
} |
#endif |
|
#include "wmsselectorwidget.moc" |
|