| The Following 3 Users Say Thank You to Markkyboy For This Useful Post: | ||
WeatherLoader {
id: weatherLoader
visible: lipstickSettings.lowPowerMode
width: lockScreen.width
height: width/2
scale: rotated ? analogclockSettingsLandscape.sneakScale/100 : analogclockSettings.sneakScale/100
source: "/usr/lib/qt5/qml/Sailfish/WeatherBannerMod.qml" //here is modified file
active: true
anchors {
top: parent.top
topMargin: rotated ? analogclockSettingsLandscape.weathertopmargin : analogclockSettings.weathertopmargin
horizontalCenter: parent.horizontalCenter
}
}
--- /dev/null +++ /usr/lib/qt5/qml/Sailfish/WeatherBannerMod.qml (YOUR_FILE)

WindDirection {
id: windDirection
anchors {
top: weatherBanner.bottom
topMargin: Theme.paddingLarge*2
horizontalCenter: parent.horizontalCenter
}
text: windDirection.text
}
import QtQuick 2.2
import Sailfish.Silica 1.0
import Sailfish.Weather 1.0
Label {
id: windDirection
text: {
if (model.windDirection==0) 'N'
else if (model.windDirection==45) 'NE'
else if (model.windDirection==90) 'E'
else if (model.windDirection==135) 'SE'
else if (model.windDirection==180) 'S'
else if (model.windDirection==225) 'SW'
else if (model.windDirection==270) 'W'
else if (model.windDirection==315) 'NW'
}
}
import org.nemomobile.configuration 1.0
ConfigurationGroup {
id: windDirection
path: "/custom_path_you_want"
property int value: windDirectionIcon.rotation
}
import org.nemomobile.configuration 1.0
ConfigurationGroup {
id: windDirection
path: "/custom_path_you_want"
property int value: 0
}
Text {
id: wind
text: windDirection.value
}
| The Following 4 Users Say Thank You to Ancelad For This Useful Post: | ||