Repositioning score box in hangman activity to prevent it from overriding other UI components.
There are a lot of elements on this activity that can make repositioning its components difficult: https://pasteboard.co/H3ZSP7v.png
I think it would be better to reduce a bit the size of the OK button, same for score (maybe something like: width: internalTextComponent.width * 1.5 and height: internalTextComponentheight * 1.2, it's to be tested, I didn't checked if it rendered well).
And setting the score at the place of the OK button and the OK button above it.
why did you change this? variant is deprecated and should not be used
Oh, sorry about the variant. The branch wasn't updated in a long time. Will change that. Also I could't test the keyboard because it doesn't appear on a computer. Thanks for the screenshot.
Besides should also cause overlapping issues.
My first comment was to do what you did but having all elements visible. Basically, you can consider: a top row with guessed text, a left column with the flower and a right column with ok+score and below is the bar+keyboard. The text should have all the remaining place.
I did fixes and I commited in https://commits.kde.org/gcompris/6a66cd44106015bd369616574d656a8dd19d15be
Please check them.
Basically, I fixed the overriding between the text to find (when letters are represented by underscores) and the score.
I changed the OK button size to a fixed size not relative to the screen width.
I also reduced the width of the score, no need to have it too big.