Commit 00aaafaa authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

[weather applet] Mark more properties readonly

parent 1e4ba0d9
......@@ -42,8 +42,8 @@ ColumnLayout {
id: repeater
delegate: Loader {
property int rowIndex: index
property var rowData: modelData
readonly property int rowIndex: index
readonly property var rowData: modelData
Layout.minimumWidth: item.Layout.minimumWidth
Layout.minimumHeight: item.Layout.minimumHeight
......
......@@ -91,8 +91,8 @@ ColumnLayout {
id: repeater
delegate: Loader {
property int rowIndex: index
property var rowData: modelData
readonly property int rowIndex: index
readonly property var rowData: modelData
Layout.fillWidth: item.Layout.fillWidth
Layout.fillHeight: item.Layout.fillHeight
......@@ -104,7 +104,7 @@ ColumnLayout {
sourceComponent: RowLayout {
id: row
property int maxItemImplicitWidth: {
readonly property int maxItemImplicitWidth: {
var mw = 0;
for (var i = 0; i < children.length; i++) {
mw = Math.max(mw, children[i].implicitWidth);
......
......@@ -43,7 +43,7 @@ ColumnLayout {
}
PlasmaComponents.Label {
property string creditUrl: plasmoid.nativeInterface.panelModel.creditUrl
readonly property string creditUrl: plasmoid.nativeInterface.panelModel.creditUrl
Layout.alignment: Qt.AlignVCenter | Qt.AlignRight
......
......@@ -28,8 +28,8 @@ GridLayout {
property alias iconSource: icon.source
property alias text: label.text
property bool vertical: false // too bad we cannot make this an enum
property int minimumIconSize: units.iconSizes.small
readonly property int minimumIconSize: units.iconSizes.small
readonly property int iconSize: iconAndTextRoot.vertical ? width : height
columns: iconAndTextRoot.vertical ? 1 : 2
......
......@@ -22,7 +22,7 @@ import org.kde.plasma.plasmoid 2.0
Item {
id: root
property string currentWeatherIconName: {
readonly property string currentWeatherIconName: {
var panelModel = plasmoid.nativeInterface.panelModel;
return !panelModel.location ? "weather-none-available" : panelModel.currentConditionIcon;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment