From c6a9ec7c6fdabbffa2fd8f1ced23bc1e86a03ca9 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 19 Nov 2009 19:38:37 +0000 Subject: [PATCH] - Added a few more country flags to Geoip --- src/Icons/flags/belgium.png | Bin 0 -> 173 bytes src/Icons/flags/bosnia.png | Bin 0 -> 583 bytes src/Icons/flags/georgia.png | Bin 0 -> 680 bytes src/Icons/flags/indonesia.png | Bin 173 -> 290 bytes src/Icons/flags/luxembourg.png | Bin 0 -> 185 bytes src/Icons/flags/suisse.png | Bin 0 -> 293 bytes src/bittorrent.h | 2 -- src/geoip.h | 7 +++++++ src/icons.qrc | 5 +++++ 9 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 src/Icons/flags/belgium.png create mode 100644 src/Icons/flags/bosnia.png create mode 100644 src/Icons/flags/georgia.png create mode 100644 src/Icons/flags/luxembourg.png create mode 100644 src/Icons/flags/suisse.png diff --git a/src/Icons/flags/belgium.png b/src/Icons/flags/belgium.png new file mode 100644 index 0000000000000000000000000000000000000000..980d634b7ddd945cf6e6d3e34a257cbd4b3187f5 GIT binary patch literal 173 zcmeAS@N?(olHy`uVBq!ia0vp^5Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01ejw01ejxLMWSf00007bV*G`2iXe~ z6CfwzccRAt00GBIL_t(I%dOQY!U4JcQs7f?**+3>MKr2n892$flKcu-Gk%ATtj#ZOiyA@I^Y@A2#0mb!oAX!sz$C z{r>UcJ^1m{;F08KEiE2uYIYKfrP1B5c^ZzOX}^~LT6-|S=ycttc}MkNVj{)lWSXHN zKW6z151yRnfBOxvZOO_?4$HC;BF~+Xb{3Xh>Hq+TL&Gp;Xl_18U$BAB+t(?Tx2Xec zTVh#~LcwBvy~M{)2M9iFQU_FuMwb{KUSwdPju-D+dHMFRT3}5$)_3q~Ur3P-?yQUVfEQt_#blr*H?_%_MEhEqB)d7{p$Cn9(-qF@} zh+B~kQo^YgNG7wGW|2tb6mE};tNq-oa$nPx#24YJ`L;(K){{a7>y{D4^000SaNLh0L01ejw01ejxLMWSf00007bV*G`2iXe~ z6B-C?4?*Vu00JmUL_t(I%e9lsOB+!b#m|h_kdOzNWEX=erKLqN-9{mxivj%T`iFs%qbGvATq;@*v!UNytp8MV3 zy&w00Qktfe%6cUVLhT%&=K#$uFV~IqP)gG*04D(MxujT(yAFl8MlQ#7t}}#K@J9?G z=1#Af&vVzI5GQSHboBsmvgnY!y$yzCQAsAzNT*RbI)a`m$H!>o^QfMkL9N&Eb8D;1 z?*e4!=8#)lL`zZdo##>7-`53{_V(~~co?lh0k?vH%0EQ6bvK)Y0eWpGdzU>O<$eSCy%bQBCBu#Jp# z`Q+~gcQ_1pIE>e**W-aN7W=2iTsRzRyIf}Q2I_G*D2q21G5LI|TCMizZEPzFTC)86 zW=Yu}yf)xtB7t}DI9Rh8eo=&bX2wvG{dafh^?KnE1bjX{)dpAt z0kmZq+~g!$_xCUl3>ZqXTC2f6HUz;#^&z~*^o+e0?`zDGnTrC?@=2*WUt zbLKoxQc9>QB0{Z|<2V?{k$vA$Rizopr0AV8^&Hw-a diff --git a/src/Icons/flags/luxembourg.png b/src/Icons/flags/luxembourg.png new file mode 100644 index 0000000000000000000000000000000000000000..70f03280a6deb99142409f3803697dc865040b50 GIT binary patch literal 185 zcmeAS@N?(olHy`uVBq!ia0vp^5sg7P`6#fBygfpP?o7Zsmy@+rx>omMOJKE?$|jBbtHX YkudkafFFA@fQB%5y85}Sb4q9e0B03FD*ylh literal 0 HcmV?d00001 diff --git a/src/Icons/flags/suisse.png b/src/Icons/flags/suisse.png new file mode 100644 index 0000000000000000000000000000000000000000..72741bdf0e7e25b119b1871e5a04cf664b48bdf8 GIT binary patch literal 293 zcmeAS@N?(olHy`uVBq!ia0vp^f*{Pn1|+R>-G2co#^NA%Cx&(BWL^R}Y)RhkE)4%c zaKYZ?lYt_f1s;*bK<(E-n9)gNb_Gz7y~NYkmHj5Su&|1b;K_a7K%u3cE{-7QpRdU*qX{D1je)-H~X zEiH{>_I&Ebf4}Q9A6|Z*V`n_io&SkH?l0B;-^uu2FZO5un*0wghRR-D zu3W-yl9_DNywwE**QB5O@c(4+n#3ll4JR6pp6<@Nd)%Lg=e<3TL)YK`uf-4l-~2rA g$C1{P6V4xHuw0bTxy0&&Jzopr0LwRUdH?_b literal 0 HcmV?d00001 diff --git a/src/bittorrent.h b/src/bittorrent.h index c6f0628e2..4c7a2a178 100644 --- a/src/bittorrent.h +++ b/src/bittorrent.h @@ -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) { diff --git a/src/geoip.h b/src/geoip.h index 34d5fe943..4a22b9823 100644 --- a/src/geoip.h +++ b/src/geoip.h @@ -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: 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: 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"); diff --git a/src/icons.qrc b/src/icons.qrc index d554cb511..475cef60e 100644 --- a/src/icons.qrc +++ b/src/icons.qrc @@ -44,6 +44,7 @@ Icons/flags/serbia.png Icons/flags/iceland.png Icons/flags/china.png + Icons/flags/luxembourg.png Icons/flags/newzealand.png Icons/flags/austria.png Icons/flags/indonesia.png @@ -55,15 +56,18 @@ Icons/flags/netherlands.png Icons/flags/south_africa.png Icons/flags/belarus.png + Icons/flags/georgia.png Icons/flags/taiwan.png Icons/flags/sweden.png Icons/flags/spain_catalunya.png Icons/flags/ireland.png Icons/flags/singapore.png Icons/flags/israel.png + Icons/flags/belgium.png Icons/flags/usa.png Icons/flags/costa_rica.png Icons/flags/romania.png + Icons/flags/suisse.png Icons/flags/croatia.png Icons/flags/mexico.png Icons/flags/denmark.png @@ -91,6 +95,7 @@ Icons/flags/egypt.png Icons/flags/italy.png Icons/flags/south_korea.png + Icons/flags/bosnia.png Icons/flags/japan.png Icons/flags/malaysia.png Icons/flags/philippines.png