View Single Post
velox's Avatar
Posts: 394 | Thanked: 1,341 times | Joined on Dec 2009
#330
Originally Posted by Feathers McGraw View Post
Are there any signals for when different pages gain focus or anything like that?
I hope I understood your underlying problem, because I think it should work without listening for focus: You could make a bool property in your LEDControl in the main qml which you can query in all other qml files with something like
Code:
    Image {
        source: ( led.isOnBool ) ? "qrc:///hammerhead-inverted" : "qrc:///hammerhead"
    }
and would not have to set the source/whatever manually on change, just set the bool.
__________________
slumber: sensors enabled sleep timer for SFOS (translations/input/… appreciated if you've got some spare time)
talefish: directory based audiobook player for SFOS
nofono: ofono restart for SFOS
___
list of i486/noarch packages on openrepos (jolla tablet)

Last edited by velox; 2016-01-03 at 22:48.
 

The Following 2 Users Say Thank You to velox For This Useful Post: