Browse Source

- Added a few more country flags to Geoip

adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
c6a9ec7c6f
  1. BIN
      src/Icons/flags/belgium.png
  2. BIN
      src/Icons/flags/bosnia.png
  3. BIN
      src/Icons/flags/georgia.png
  4. BIN
      src/Icons/flags/indonesia.png
  5. BIN
      src/Icons/flags/luxembourg.png
  6. BIN
      src/Icons/flags/suisse.png
  7. 2
      src/bittorrent.h
  8. 7
      src/geoip.h
  9. 5
      src/icons.qrc

BIN
src/Icons/flags/belgium.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 B

BIN
src/Icons/flags/bosnia.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 583 B

BIN
src/Icons/flags/georgia.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 680 B

BIN
src/Icons/flags/indonesia.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 B

After

Width:  |  Height:  |  Size: 290 B

BIN
src/Icons/flags/luxembourg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

BIN
src/Icons/flags/suisse.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 B

2
src/bittorrent.h

@ -58,11 +58,9 @@ public: @@ -58,11 +58,9 @@ public:
//TrackerInfos() {}
TrackerInfos(const TrackerInfos &b) {
qDebug("TrackerInfos copy contructor called");
name_or_url = b.name_or_url;
Q_ASSERT(!name_or_url.isEmpty());
last_message = b.last_message;
qDebug("Copied message: %s", last_message.toLocal8Bit().data());
num_peers = b.num_peers;
}
TrackerInfos(QString name_or_url): name_or_url(name_or_url), last_message(""), num_peers(0) {

7
src/geoip.h

@ -127,12 +127,15 @@ public: @@ -127,12 +127,15 @@ public:
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");
if(iso[1] == 'E') return QIcon(":/Icons/flags/belgium.png");
if(iso[1] == 'A') return QIcon(":/Icons/flags/bosnia.png");
break;
case 'C':
if(iso[1] == 'A') return QIcon(":/Icons/flags/canada.png");
if(iso[1] == 'Z') return QIcon(":/Icons/flags/czech.png");
if(iso[1] == 'N') return QIcon(":/Icons/flags/china.png");
if(iso[1] == 'R') return QIcon(":/Icons/flags/costa_rica.png");
if(iso[1] == 'H') return QIcon(":/Icons/flags/suisse.png");
break;
case 'D':
if(iso[1] == 'E') return QIcon(":/Icons/flags/germany.png");
@ -150,6 +153,7 @@ public: @@ -150,6 +153,7 @@ public:
case 'G':
if(iso[1] == 'B') return QIcon(":/Icons/flags/united_kingdom.png");
if(iso[1] == 'R') return QIcon(":/Icons/flags/greece.png");
if(iso[1] == 'E') return QIcon(":/Icons/flags/georgia.png");
break;
case 'H':
if(iso[1] == 'U') return QIcon(":/Icons/flags/hungary.png");
@ -170,6 +174,9 @@ public: @@ -170,6 +174,9 @@ public:
case 'K':
if(iso[1] == 'R') return QIcon(":/Icons/flags/south_korea.png");
break;
case 'L':
if(iso[1] == 'U') return QIcon(":/Icons/flags/luxembourg.png");
break;
case 'M':
if(iso[1] == 'Y') return QIcon(":/Icons/flags/malaysia.png");
if(iso[1] == 'X') return QIcon(":/Icons/flags/mexico.png");

5
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/luxembourg.png</file>
<file>Icons/flags/newzealand.png</file>
<file>Icons/flags/austria.png</file>
<file>Icons/flags/indonesia.png</file>
@ -55,15 +56,18 @@ @@ -55,15 +56,18 @@
<file>Icons/flags/netherlands.png</file>
<file>Icons/flags/south_africa.png</file>
<file>Icons/flags/belarus.png</file>
<file>Icons/flags/georgia.png</file>
<file>Icons/flags/taiwan.png</file>
<file>Icons/flags/sweden.png</file>
<file>Icons/flags/spain_catalunya.png</file>
<file>Icons/flags/ireland.png</file>
<file>Icons/flags/singapore.png</file>
<file>Icons/flags/israel.png</file>
<file>Icons/flags/belgium.png</file>
<file>Icons/flags/usa.png</file>
<file>Icons/flags/costa_rica.png</file>
<file>Icons/flags/romania.png</file>
<file>Icons/flags/suisse.png</file>
<file>Icons/flags/croatia.png</file>
<file>Icons/flags/mexico.png</file>
<file>Icons/flags/denmark.png</file>
@ -91,6 +95,7 @@ @@ -91,6 +95,7 @@
<file>Icons/flags/egypt.png</file>
<file>Icons/flags/italy.png</file>
<file>Icons/flags/south_korea.png</file>
<file>Icons/flags/bosnia.png</file>
<file>Icons/flags/japan.png</file>
<file>Icons/flags/malaysia.png</file>
<file>Icons/flags/philippines.png</file>

Loading…
Cancel
Save