forked from qt-creator/qt-creator
QmlDesigner: Fixing highlighting for UrlChooser
Change-Id: I47a7fc2e92247b1f4a8d81432a4ad020efd87ce9 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
f451908de4
commit
c6f17699f8
@@ -42,6 +42,7 @@ QtObject {
|
||||
property bool baseStateFlag: isBaseState;
|
||||
property bool isInModel: backendValue.isInModel;
|
||||
property bool isInSubState: backendValue.isInSubState;
|
||||
property bool highlight: textColor == Constants.colorsChangedBaseText
|
||||
|
||||
onBackendValueChanged: {
|
||||
evaluate();
|
||||
|
@@ -48,7 +48,7 @@ RowLayout {
|
||||
id: urlChooser
|
||||
property variant backendValue
|
||||
|
||||
property color textColor: "white"
|
||||
property color textColor: colorLogic.highlight ? colorLogic.textColor : "white"
|
||||
|
||||
property string filter: "*.png *.gif *.jpg *.bmp *.jpeg *.svg"
|
||||
|
||||
@@ -59,8 +59,12 @@ RowLayout {
|
||||
id: fileModel
|
||||
}
|
||||
|
||||
Controls.ComboBox {
|
||||
ColorLogic {
|
||||
id: colorLogic
|
||||
backendValue: urlChooser.backendValue
|
||||
}
|
||||
|
||||
Controls.ComboBox {
|
||||
id: comboBox
|
||||
|
||||
property bool isComplete: false
|
||||
|
Reference in New Issue
Block a user