Use the theme file defined sounds if they are declared.
ClosedPublic

Authored by jjorge on May 29 2019, 8:25 AM.

Details

Summary

The theme files define themed sounds, but the code does not use them.
This make it work, tested with Europe theme downloaded through KnewStuff.

Test Plan

Does this need any other action from me to be reviewed?

Thanks.

Diff Detail

Repository
R391 KBlocks
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
jjorge created this revision.May 29 2019, 8:25 AM
Restricted Application added a reviewer: KDE Games. · View Herald TranscriptMay 29 2019, 8:25 AM
Restricted Application added a subscriber: kde-games-devel. · View Herald Transcript
jjorge requested review of this revision.May 29 2019, 8:25 AM
jjorge updated this revision to Diff 58823.May 29 2019, 8:27 AM
  • Add .arcconfig file to the project to make contribution easier.
aacid accepted this revision.May 29 2019, 10:30 PM
aacid added a subscriber: aacid.

ther'es some small things as not compating against "" but using isEmpty, but i'll fix that myself when commititng

This revision is now accepted and ready to land.May 29 2019, 10:30 PM
aacid requested changes to this revision.May 29 2019, 10:32 PM

Actually no, this is not all good.

The paths only get calculated on app startup not when the theme is changed while the app running.

Can you please fix that?

This revision now requires changes to proceed.May 29 2019, 10:32 PM
jjorge updated this revision to Diff 58901.May 30 2019, 11:39 AM
  • Added a loadtheme function to allow sound theme switching on config change.
jjorge edited the test plan for this revision. (Show Details)Jun 3 2019, 5:05 PM
aacid added a comment.Jun 8 2019, 9:58 PM

You have a memory leak and some other things like the warnings, but i'll fix them myself and commit.

Thanks for the contribution :)

KBlocksSound.cpp
68

This is by far *not* a warning

aacid accepted this revision.Jun 8 2019, 9:58 PM
This revision is now accepted and ready to land.Jun 8 2019, 9:58 PM
This revision was automatically updated to reflect the committed changes.