fix(CommunityPermissions): Warning regarding color assignment fixed

This commit is contained in:
Michał Cieślak 2023-02-15 10:26:48 +01:00 committed by Michał
parent d025f17e2a
commit f6ac937dfd
4 changed files with 5 additions and 9 deletions

View File

@ -66,7 +66,7 @@ SplitView {
readonly property QtObject activeSection: QtObject {
readonly property string name: "Socks"
readonly property string image: ModelsData.icons.socks
readonly property color color: "red"
readonly property string color: "red"
}
}
}

View File

@ -20,6 +20,7 @@ SplitView {
SplitView.fillWidth: true
SplitView.fillHeight: true
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
CommunityPermissionsSettingsPanel {
id: communityPermissionsSettingsPanel
@ -59,7 +60,7 @@ SplitView {
readonly property QtObject activeSection: QtObject {
readonly property string name: "Socks"
readonly property string image: ModelsData.icons.socks
readonly property color color: "red"
readonly property string color: "red"
}
}
}
@ -74,7 +75,6 @@ SplitView {
logsView.logText: logs.logText
ColumnLayout {
anchors.top: parent.top
anchors.left: parent.left

View File

@ -50,7 +50,7 @@ SplitView {
readonly property QtObject activeSection: QtObject {
readonly property string name: "Socks"
readonly property string image: ModelsData.icons.socks
readonly property color color: "red"
readonly property string color: "red"
}
}
}

View File

@ -428,17 +428,13 @@ StatusScrollView {
ListModel {
id: inModelCommunity
readonly property string colorWorkaround: inDropdown.communityData.color
Component.onCompleted: {
append({
imageSource: inDropdown.communityData.image,
text: inDropdown.communityData.name,
operator: OperatorsUtils.Operators.None,
color: ""
color: inDropdown.communityData.color
})
setProperty(0, "color", colorWorkaround)
}
}