View Single Post
Ancelad's Avatar
Posts: 1,552 | Thanked: 3,108 times | Joined on Jun 2012 @ Russia, 96
#30
Hmmm... Dirty trick, but seems working...

Add into /usr/lib/qt5/qml/Sailfish/Weather/WeatherDetailsHeader.qml

Code:
import org.nemomobile.configuration 1.0
and

Code:
ConfigurationGroup {
     id: windDirection
     path: "/custom_path_you_want"
     property int value: windDirectionIcon.rotation
}
And now you can read this value from Clock.qml by adding

Code:
import org.nemomobile.configuration 1.0
and

Code:
ConfigurationGroup {
     id: windDirection
     path: "/custom_path_you_want"
     property int value: 0
}
and finally

Code:
Text {
        id: wind
        text: windDirection.value 
}
It will show values from 0 with stepsize 45... And now you can define texts according values...

I'm not sure if it will work dynamically but it should...
 

The Following 4 Users Say Thank You to Ancelad For This Useful Post: