Browse Source

- Added more country flags to geoip

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
f588882a96
  1. BIN
      src/Icons/flags/costa_rica.png
  2. BIN
      src/Icons/flags/indonesia.png
  3. BIN
      src/Icons/flags/mexico.png
  4. BIN
      src/Icons/flags/serbia.png
  5. 5
      src/geoip.h
  6. 4
      src/icons.qrc

BIN
src/Icons/flags/costa_rica.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

BIN
src/Icons/flags/indonesia.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 B

BIN
src/Icons/flags/mexico.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 402 B

BIN
src/Icons/flags/serbia.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

5
src/geoip.h

@ -131,6 +131,7 @@ public:
if(iso[1] == 'A') return QIcon(":/Icons/flags/canada.png"); if(iso[1] == 'A') return QIcon(":/Icons/flags/canada.png");
if(iso[1] == 'Z') return QIcon(":/Icons/flags/czech.png"); if(iso[1] == 'Z') return QIcon(":/Icons/flags/czech.png");
if(iso[1] == 'C') return QIcon(":/Icons/flags/china.png"); if(iso[1] == 'C') return QIcon(":/Icons/flags/china.png");
if(iso[1] == 'R') return QIcon(":/Icons/flags/costa_rica.png");
break; break;
case 'D': case 'D':
if(iso[1] == 'E') return QIcon(":/Icons/flags/germany.png"); if(iso[1] == 'E') return QIcon(":/Icons/flags/germany.png");
@ -157,6 +158,7 @@ public:
if(iso[1] == 'L') return QIcon(":/Icons/flags/israel.png"); if(iso[1] == 'L') return QIcon(":/Icons/flags/israel.png");
if(iso[1] == 'E') return QIcon(":/Icons/flags/ireland.png"); if(iso[1] == 'E') return QIcon(":/Icons/flags/ireland.png");
if(iso[1] == 'S') return QIcon(":/Icons/flags/iceland.png"); if(iso[1] == 'S') return QIcon(":/Icons/flags/iceland.png");
if(iso[1] == 'D') return QIcon(":/Icons/flags/indonesia.png");
break; break;
case 'J': case 'J':
if(iso[1] == 'P') return QIcon(":/Icons/flags/japan.png"); if(iso[1] == 'P') return QIcon(":/Icons/flags/japan.png");
@ -166,6 +168,8 @@ public:
break; break;
case 'M': case 'M':
if(iso[1] == 'Y') return QIcon(":/Icons/flags/malaysia.png"); if(iso[1] == 'Y') return QIcon(":/Icons/flags/malaysia.png");
if(iso[1] == 'X') return QIcon(":/Icons/flags/mexico.png");
if(iso[1] == 'E') return QIcon(":/Icons/flags/serbia.png");
break; break;
case 'N': case 'N':
if(iso[1] == 'L') return QIcon(":/Icons/flags/netherlands.png"); if(iso[1] == 'L') return QIcon(":/Icons/flags/netherlands.png");
@ -181,6 +185,7 @@ public:
if(iso[1] == 'U') return QIcon(":/Icons/flags/russia.png"); if(iso[1] == 'U') return QIcon(":/Icons/flags/russia.png");
if(iso[1] == 'O') return QIcon(":/Icons/flags/romania.png"); if(iso[1] == 'O') return QIcon(":/Icons/flags/romania.png");
if(iso[1] == 'E') return QIcon(":/Icons/flags/france.png"); if(iso[1] == 'E') return QIcon(":/Icons/flags/france.png");
if(iso[1] == 'S') return QIcon(":/Icons/flags/serbia.png");
break; break;
case 'S': case 'S':
if(iso[1] == 'E') return QIcon(":/Icons/flags/sweden.png"); if(iso[1] == 'E') return QIcon(":/Icons/flags/sweden.png");

4
src/icons.qrc

@ -41,9 +41,11 @@
<file>Icons/skin/splash.png</file> <file>Icons/skin/splash.png</file>
<file>Icons/skin/decrease.png</file> <file>Icons/skin/decrease.png</file>
<file>Icons/flags/czech.png</file> <file>Icons/flags/czech.png</file>
<file>Icons/flags/serbia.png</file>
<file>Icons/flags/iceland.png</file> <file>Icons/flags/iceland.png</file>
<file>Icons/flags/china.png</file> <file>Icons/flags/china.png</file>
<file>Icons/flags/austria.png</file> <file>Icons/flags/austria.png</file>
<file>Icons/flags/indonesia.png</file>
<file>Icons/flags/united_arab_emirates.png</file> <file>Icons/flags/united_arab_emirates.png</file>
<file>Icons/flags/norway.png</file> <file>Icons/flags/norway.png</file>
<file>Icons/flags/india.png</file> <file>Icons/flags/india.png</file>
@ -58,7 +60,9 @@
<file>Icons/flags/singapore.png</file> <file>Icons/flags/singapore.png</file>
<file>Icons/flags/israel.png</file> <file>Icons/flags/israel.png</file>
<file>Icons/flags/usa.png</file> <file>Icons/flags/usa.png</file>
<file>Icons/flags/costa_rica.png</file>
<file>Icons/flags/romania.png</file> <file>Icons/flags/romania.png</file>
<file>Icons/flags/mexico.png</file>
<file>Icons/flags/denmark.png</file> <file>Icons/flags/denmark.png</file>
<file>Icons/flags/hungary.png</file> <file>Icons/flags/hungary.png</file>
<file>Icons/flags/ukraine.png</file> <file>Icons/flags/ukraine.png</file>

Loading…
Cancel
Save