Commit c6f17699 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Thomas Hartmann
Browse files

QmlDesigner: Fixing highlighting for UrlChooser



Change-Id: I47a7fc2e92247b1f4a8d81432a4ad020efd87ce9
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent f451908d
...@@ -42,6 +42,7 @@ QtObject { ...@@ -42,6 +42,7 @@ QtObject {
property bool baseStateFlag: isBaseState; property bool baseStateFlag: isBaseState;
property bool isInModel: backendValue.isInModel; property bool isInModel: backendValue.isInModel;
property bool isInSubState: backendValue.isInSubState; property bool isInSubState: backendValue.isInSubState;
property bool highlight: textColor == Constants.colorsChangedBaseText
onBackendValueChanged: { onBackendValueChanged: {
evaluate(); evaluate();
......
...@@ -48,7 +48,7 @@ RowLayout { ...@@ -48,7 +48,7 @@ RowLayout {
id: urlChooser id: urlChooser
property variant backendValue property variant backendValue
property color textColor: "white" property color textColor: colorLogic.highlight ? colorLogic.textColor : "white"
property string filter: "*.png *.gif *.jpg *.bmp *.jpeg *.svg" property string filter: "*.png *.gif *.jpg *.bmp *.jpeg *.svg"
...@@ -59,8 +59,12 @@ RowLayout { ...@@ -59,8 +59,12 @@ RowLayout {
id: fileModel id: fileModel
} }
Controls.ComboBox { ColorLogic {
id: colorLogic
backendValue: urlChooser.backendValue
}
Controls.ComboBox {
id: comboBox id: comboBox
property bool isComplete: false property bool isComplete: false
......
Markdown is supported
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