summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Qt3DStudio/Palettes/Project/ProjectView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/Authoring/Qt3DStudio/Palettes/Project/ProjectView.qml')
-rw-r--r--src/Authoring/Qt3DStudio/Palettes/Project/ProjectView.qml21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/Authoring/Qt3DStudio/Palettes/Project/ProjectView.qml b/src/Authoring/Qt3DStudio/Palettes/Project/ProjectView.qml
index 12d39048..d958152b 100644
--- a/src/Authoring/Qt3DStudio/Palettes/Project/ProjectView.qml
+++ b/src/Authoring/Qt3DStudio/Palettes/Project/ProjectView.qml
@@ -177,9 +177,11 @@ Rectangle {
id: fileNameLabel
text: _fileId ? fileName + " <" + _fileId + ">" : fileName;
color: {
- _isReferenced ? _textColor
- : _isProjectReferenced ? _projectReferencedColor
- : _disabledColor
+ _hasWarning ? _invalidDataIndicatorColor :
+ _isReferenced ? _textColor :
+ _isProjectReferenced ?
+ _projectReferencedColor
+ : _disabledColor
}
leftPadding: 2
@@ -211,13 +213,16 @@ Rectangle {
hoverEnabled: true
onPressed: delegateItem.handlePress(mouse, false)
onClicked: delegateItem.handleClick(mouse)
- onDoubleClicked: _parentView.editPresentationId(
- index, _parentView.isQmlStream(index))
+ onDoubleClicked:
+ _hasWarning ? _parentView.showSpecificShaderError(index)
+ : _parentView.editPresentationId(
+ index, _parentView.isQmlStream(index))
}
StyledTooltip {
- text: _parentView.isPresentation(index)
- ? qsTr("No presentation Id")
- : qsTr("No Qml stream Id")
+ text: _hasWarning ? qsTr("Shader error")
+ : _parentView.isPresentation(index)
+ ? qsTr("No presentation Id")
+ : qsTr("No Qml stream Id")
enabled: warningMouseArea.containsMouse
}
}