solar_system activityConfig multipledata style added
ClosedPublic

Authored by dekumar on Apr 18 2020, 5:49 PM.

Diff Detail

Repository
R2 GCompris
Branch
solar_aconfig
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 25470
Build 25488: arc lint + arc unit
dekumar created this revision.Apr 18 2020, 5:49 PM
Restricted Application added a project: KDE Edu. · View Herald TranscriptApr 18 2020, 5:49 PM
Restricted Application added a subscriber: kde-edu. · View Herald Transcript
dekumar requested review of this revision.Apr 18 2020, 5:49 PM
dekumar retitled this revision from activityConfig added to solar_system activityConfig multipledata style added.Apr 18 2020, 5:51 PM
dekumar edited the summary of this revision. (Show Details)

Thank you,
I saw two bugs with the changes:
When starting the activity from the menu, I have the following error: "qrc:/gcompris/src/activities/solar_system/ActivityConfig.qml:66: ReferenceError: items is not defined". And if I changed the configuration before, it is not taken in account.

src/activities/solar_system/ActivityConfig.qml
67

this does not work, when I display numberOfLevel in nextLevel(), it tells it's undefined.
I let you try to find a solution.

dekumar updated this revision to Diff 80522.Apr 19 2020, 9:05 AM
  • All issues fixed

Thank you,
I saw two bugs with the changes:
When starting the activity from the menu, I have the following error: "qrc:/gcompris/src/activities/solar_system/ActivityConfig.qml:66: ReferenceError: items is not defined". And if I changed the configuration before, it is not taken in account.

@jjazeix I have fixed all the bugs. Please review it now.
Thanks!

jjazeix added inline comments.Apr 19 2020, 4:07 PM
src/activities/solar_system/SolarSystem.qml
79

dekumar added inline comments.Apr 19 2020, 4:42 PM
src/activities/solar_system/SolarSystem.qml
79

@jjazeix Why this comment? I think you forgot to write the changes as it's blank.

jjazeix added inline comments.Apr 19 2020, 5:04 PM
src/activities/solar_system/SolarSystem.qml
79

'===',
Seems === is a special command

dekumar added inline comments.Apr 19 2020, 5:14 PM
src/activities/solar_system/SolarSystem.qml
79

Yes, having === is better as it compares the data type should also be same before comparison. I would update it.

dekumar updated this revision to Diff 80565.Apr 19 2020, 5:18 PM
  • Comparison operators updated

Comment to be detailed thanks.

src/activities/solar_system/SolarSystem.qml
79

I don't understand this comment. Could you please explain it in details? Thanks.

dekumar added inline comments.Apr 28 2020, 8:50 AM
src/activities/solar_system/SolarSystem.qml
79

@echarruau Hi, I will try to explain this with an example. Let's take two example

  1. if(9 == "9")
  2. if(9 === "9")

In the first example it would return true, while comparing a string with integer. As the string also gets converted to integer due to type conversion which happens in JavaScript.
In the second example it would return false as it makes strict comparison without doing any type conversion of data. Hope it is clear to you now.
Thanks!

echarruau added inline comments.Apr 28 2020, 9:38 PM
src/activities/solar_system/SolarSystem.qml
79

Ok for me then, it makes sens.

jjazeix accepted this revision.May 3 2020, 8:18 AM
This revision is now accepted and ready to land.May 3 2020, 8:18 AM
jjazeix closed this revision.May 3 2020, 8:19 AM