Commit be6af721 authored by Vlad Rakhmanin's avatar Vlad Rakhmanin Committed by Albert Astals Cid
Browse files

Implemented blurred flag feature

**What does this merge request address?**

This merge request relates to the Bug 457725, which suggested a new feature whereby certain flags with text on them can be blurred out, to make the flag guessing games more challenging. The flag should only be blurred in the guessing games, and in normal "browsing" mode the flag should remain unblurred. 

**How has the new functionality been implemented?**

The map parser has been amended to now look for an additional division property entitled "blurredflag", which should contain a blurred variant of the flag. A new method has been added to the "division" class entitled "getFlagForQuestion", which returns a blurred flag if one is available. This method is now used in the flag guessing games.

BUG: 457725
parent 1068881d
Pipeline #231533 passed with stage
in 5 minutes and 38 seconds
......@@ -78,6 +78,7 @@
<division>
<name>Paraná</name>
<flag>brazil/br_PN.png</flag>
<blurredflag>brazil/blurred_br_PN.png</blurredflag>
<capital>Curitiba</capital>
<color>
<red>140</red>
......@@ -218,6 +219,7 @@
<division>
<name>Rio de Janeiro State</name>
<flag>brazil/br_RJ.png</flag>
<blurredflag>brazil/blurred_br_RJ.png</blurredflag>
<capital>Rio de Janeiro</capital>
<color>
<red>201</red>
......
......@@ -9,6 +9,7 @@ install(FILES
br_MT.png
br_PI.png
br_RJ.png
blurred_br_RJ.png
br_RR.png
br_SE.png
br_AL.png
......@@ -17,6 +18,7 @@ install(FILES
br_MG.png
br_PA.png
br_PN.png
blurred_br_PN.png
br_RN.png
br_RS.png
br_SP.png
......
......@@ -4,12 +4,15 @@
install(FILES
it-bas200.png
it-emi200.png
blurred_it-emi200.png
it-lig200.png
it-mol200.png
blurred_it-mol200.png
it-sar200.png
it-tus200.png
it-abr200.png
it-cal200.png
blurred_it-cal200.png
it-fri200.png
it-lom200.png
it-pie200.png
......@@ -18,10 +21,14 @@ install(FILES
it-aos200.png
it-cam200.png
it-lat200.png
blurred_it-lat200.png
it-mar200.png
blurred_it-mar200.png
it-pug200.png
blurred_it-pug200.png
it-tre200.png
it-ven200.png
blurred_it-ven200.png
DESTINATION ${KDE_INSTALL_DATADIR}/kgeography/flags/italy)
......
......@@ -7,6 +7,7 @@ install(FILES
more_og_romsdal.png
nordland.png
oslo.png
blurred_oslo.png
rogaland.png
troms_og_finnmark.png
trondelag.png
......
......@@ -3,6 +3,7 @@
install(FILES
amazonas.png
blurred_amazonas.png
arequipa.png
cusco.png
ica.png
......@@ -10,7 +11,9 @@ lambayeque.png
madre_de_dios.png
piura.png
tacna.png
blurred_tacna.png
ancash.png
blurred_ancash.png
ayacucho.png
huancavelica.png
junin.png
......@@ -24,6 +27,7 @@ huanuco.png
la_libertad.png
loreto.png
pasco.png
san_martin.png
san_martin.png
blurred_san_martin.png
ucayali.png
DESTINATION ${KDE_INSTALL_DATADIR}/kgeography/flags/peru)
install(FILES
aveiro.png
blurred_aveiro.png
beja.png
blurred_beja.png
braga.png
blurred_braga.png
evora.png
blurred_evora.png
guarda.png
blurred_guarda.png
lisboa.png
blurred_lisboa.png
portalegre.png
blurred_portalegre.png
santarem.png
blurred_santarem.png
viana_do_castelo.png
blurred_viana_do_castelo.png
viseu.png
blurred_viseu.png
azores.png
braganca.png
blurred_braganca.png
castelo_branco.png
blurred_castelo_branco.png
coimbra.png
blurred_coimbra.png
faro.png
blurred_faro.png
leiria.png
blurred_leiria.png
madeira.png
porto.png
blurred_porto.png
setubal.png
blurred_setubal.png
vila_real.png
blurred_vila_real.png
DESTINATION ${KDE_INSTALL_DATADIR}/kgeography/flags/portugal)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment