Browse Source

- Added more country flags to geoip

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
7093c3576b
  1. BIN
      src/Icons/flags/algeria.png
  2. BIN
      src/Icons/flags/belarus.png
  3. BIN
      src/Icons/flags/croatia.png
  4. BIN
      src/Icons/flags/egypt.png
  5. BIN
      src/Icons/flags/morocco.png
  6. BIN
      src/Icons/flags/newzealand.png
  7. BIN
      src/Icons/flags/slovenia.png
  8. 7
      src/geoip.h
  9. 7
      src/icons.qrc

BIN
src/Icons/flags/algeria.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 B

BIN
src/Icons/flags/belarus.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

BIN
src/Icons/flags/croatia.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 479 B

BIN
src/Icons/flags/egypt.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 B

BIN
src/Icons/flags/morocco.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 373 B

BIN
src/Icons/flags/newzealand.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 679 B

BIN
src/Icons/flags/slovenia.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

7
src/geoip.h

@ -126,6 +126,7 @@ public: @@ -126,6 +126,7 @@ public:
case 'B':
if(iso[1] == 'R') return QIcon(":/Icons/flags/brazil.png");
if(iso[1] == 'G') return QIcon(":/Icons/flags/bulgaria.png");
if(iso[1] == 'Y') return QIcon(":/Icons/flags/belarus.png");
break;
case 'C':
if(iso[1] == 'A') return QIcon(":/Icons/flags/canada.png");
@ -136,9 +137,11 @@ public: @@ -136,9 +137,11 @@ public:
case 'D':
if(iso[1] == 'E') return QIcon(":/Icons/flags/germany.png");
if(iso[1] == 'K') return QIcon(":/Icons/flags/denmark.png");
if(iso[1] == 'Z') return QIcon(":/Icons/flags/algeria.png");
break;
case 'E':
if(iso[1] == 'S') return QIcon(":/Icons/flags/spain.png");
if(iso[1] == 'G') return QIcon(":/Icons/flags/egypt.png");
break;
case 'F':
if(iso[1] == 'I') return QIcon(":/Icons/flags/finland.png");
@ -151,6 +154,7 @@ public: @@ -151,6 +154,7 @@ public:
case 'H':
if(iso[1] == 'U') return QIcon(":/Icons/flags/hungary.png");
if(iso[1] == 'K') return QIcon(":/Icons/flags/china.png");
if(iso[1] == 'R') return QIcon(":/Icons/flags/croatia.png");
break;
case 'I':
if(iso[1] == 'T') return QIcon(":/Icons/flags/italy.png");
@ -170,10 +174,12 @@ public: @@ -170,10 +174,12 @@ public:
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");
if(iso[1] == 'A') return QIcon(":/Icons/flags/morocco.png");
break;
case 'N':
if(iso[1] == 'L') return QIcon(":/Icons/flags/netherlands.png");
if(iso[1] == 'O') return QIcon(":/Icons/flags/norway.png");
if(iso[1] == 'Z') return QIcon(":/Icons/flags/newzealand.png");
break;
case 'P':
if(iso[1] == 'T') return QIcon(":/Icons/flags/portugal.png");
@ -191,6 +197,7 @@ public: @@ -191,6 +197,7 @@ public:
if(iso[1] == 'E') return QIcon(":/Icons/flags/sweden.png");
if(iso[1] == 'K') return QIcon(":/Icons/flags/slovakia.png");
if(iso[1] == 'G') return QIcon(":/Icons/flags/singapore.png");
if(iso[1] == 'I') return QIcon(":/Icons/flags/slovenia.png");
break;
case 'T':
if(iso[1] == 'W') return QIcon(":/Icons/flags/china.png");

7
src/icons.qrc

@ -44,6 +44,7 @@ @@ -44,6 +44,7 @@
<file>Icons/flags/serbia.png</file>
<file>Icons/flags/iceland.png</file>
<file>Icons/flags/china.png</file>
<file>Icons/flags/newzealand.png</file>
<file>Icons/flags/austria.png</file>
<file>Icons/flags/indonesia.png</file>
<file>Icons/flags/united_arab_emirates.png</file>
@ -53,6 +54,7 @@ @@ -53,6 +54,7 @@
<file>Icons/flags/australia.png</file>
<file>Icons/flags/netherlands.png</file>
<file>Icons/flags/south_africa.png</file>
<file>Icons/flags/belarus.png</file>
<file>Icons/flags/taiwan.png</file>
<file>Icons/flags/sweden.png</file>
<file>Icons/flags/spain_catalunya.png</file>
@ -62,12 +64,16 @@ @@ -62,12 +64,16 @@
<file>Icons/flags/usa.png</file>
<file>Icons/flags/costa_rica.png</file>
<file>Icons/flags/romania.png</file>
<file>Icons/flags/croatia.png</file>
<file>Icons/flags/mexico.png</file>
<file>Icons/flags/denmark.png</file>
<file>Icons/flags/hungary.png</file>
<file>Icons/flags/slovenia.png</file>
<file>Icons/flags/ukraine.png</file>
<file>Icons/flags/turkey.png</file>
<file>Icons/flags/algeria.png</file>
<file>Icons/flags/greece.png</file>
<file>Icons/flags/morocco.png</file>
<file>Icons/flags/argentina.png</file>
<file>Icons/flags/spain.png</file>
<file>Icons/flags/portugal.png</file>
@ -82,6 +88,7 @@ @@ -82,6 +88,7 @@
<file>Icons/flags/france.png</file>
<file>Icons/flags/slovakia.png</file>
<file>Icons/flags/pakistan.png</file>
<file>Icons/flags/egypt.png</file>
<file>Icons/flags/italy.png</file>
<file>Icons/flags/south_korea.png</file>
<file>Icons/flags/japan.png</file>

Loading…
Cancel
Save