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 QtObject activeSection: QtObject {
readonly property string name: "Socks" readonly property string name: "Socks"
readonly property string image: ModelsData.icons.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.fillWidth: true
SplitView.fillHeight: true SplitView.fillHeight: true
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
CommunityPermissionsSettingsPanel { CommunityPermissionsSettingsPanel {
id: communityPermissionsSettingsPanel id: communityPermissionsSettingsPanel
@ -59,7 +60,7 @@ SplitView {
readonly property QtObject activeSection: QtObject { readonly property QtObject activeSection: QtObject {
readonly property string name: "Socks" readonly property string name: "Socks"
readonly property string image: ModelsData.icons.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 logsView.logText: logs.logText
ColumnLayout { ColumnLayout {
anchors.top: parent.top anchors.top: parent.top
anchors.left: parent.left anchors.left: parent.left

View File

@ -50,7 +50,7 @@ SplitView {
readonly property QtObject activeSection: QtObject { readonly property QtObject activeSection: QtObject {
readonly property string name: "Socks" readonly property string name: "Socks"
readonly property string image: ModelsData.icons.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 { ListModel {
id: inModelCommunity id: inModelCommunity
readonly property string colorWorkaround: inDropdown.communityData.color
Component.onCompleted: { Component.onCompleted: {
append({ append({
imageSource: inDropdown.communityData.image, imageSource: inDropdown.communityData.image,
text: inDropdown.communityData.name, text: inDropdown.communityData.name,
operator: OperatorsUtils.Operators.None, operator: OperatorsUtils.Operators.None,
color: "" color: inDropdown.communityData.color
}) })
setProperty(0, "color", colorWorkaround)
} }
} }