Skip to content

Commit aacd24a

Browse files
committed
[ui][qml] Viewer2D: Add image status pane for PhongImageViewer
1 parent 3314ca6 commit aacd24a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

meshroom/ui/qml/Viewer/Viewer2D.qml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,38 @@ FocusScope {
10721072
}
10731073
}
10741074
}
1075+
FloatingPane {
1076+
Layout.fillWidth: true
1077+
Layout.fillHeight: false
1078+
Layout.preferredHeight: childrenRect.height
1079+
visible: phongImageViewerLoader.item !== null &&
1080+
phongImageViewerLoader.item.imageStatus === Image.Error &&
1081+
phongImageViewerLoader.sourcePath != ""
1082+
Layout.alignment: Qt.AlignHCenter
1083+
RowLayout {
1084+
anchors.fill: parent
1085+
Label {
1086+
font.pointSize: 8
1087+
text: {
1088+
if (phongImageViewerLoader.item !== null) {
1089+
switch (phongImageViewerLoader.item.status) {
1090+
case 2: // AliceVision.PhongImageViewer.EStatus.MISSING_FILE
1091+
return "Invalid / Missing File(s)"
1092+
case 4: // AliceVision.PhongImageViewer.EStatus.LOADING_ERROR
1093+
return "Error"
1094+
default:
1095+
return ""
1096+
}
1097+
}
1098+
return ""
1099+
}
1100+
horizontalAlignment: Text.AlignHCenter
1101+
verticalAlignment: Text.AlignVCenter
1102+
Layout.fillWidth: true
1103+
Layout.alignment: Qt.AlignHCenter
1104+
}
1105+
}
1106+
}
10751107

10761108
Item {
10771109
id: imgPlaceholder

0 commit comments

Comments
 (0)