mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-10 23:01:59 +02:00
[ui] Viewer2D: add a summary to the image metadata tab
This commit is contained in:
parent
4ce295b348
commit
a11b5d51aa
1 changed files with 46 additions and 1 deletions
|
@ -129,7 +129,52 @@ FloatingPane {
|
||||||
id: searchBar
|
id: searchBar
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
|
RowLayout {
|
||||||
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
Label {
|
||||||
|
font.family: MaterialIcons.fontFamily
|
||||||
|
text: MaterialIcons.shutter_speed
|
||||||
|
}
|
||||||
|
Label {
|
||||||
|
id: exposureLabel
|
||||||
|
text: {
|
||||||
|
if(metadata["ExposureTime"] === undefined)
|
||||||
|
return "";
|
||||||
|
var expStr = metadata["ExposureTime"];
|
||||||
|
var exp = parseFloat(expStr);
|
||||||
|
if(exp < 1.0)
|
||||||
|
{
|
||||||
|
var invExp = 1.0 / exp;
|
||||||
|
return "1/" + invExp.toFixed(0);
|
||||||
|
}
|
||||||
|
return expStr;
|
||||||
|
}
|
||||||
|
elide: Text.ElideRight
|
||||||
|
horizontalAlignment: Text.AlignHLeft
|
||||||
|
}
|
||||||
|
Item { width: 4 }
|
||||||
|
Label {
|
||||||
|
font.family: MaterialIcons.fontFamily
|
||||||
|
text: MaterialIcons.camera
|
||||||
|
}
|
||||||
|
Label {
|
||||||
|
id: fnumberLabel
|
||||||
|
text: (metadata["FNumber"] !== undefined) ? ("f/" + metadata["FNumber"]) : ""
|
||||||
|
elide: Text.ElideRight
|
||||||
|
horizontalAlignment: Text.AlignHLeft
|
||||||
|
}
|
||||||
|
Item { width: 4 }
|
||||||
|
Label {
|
||||||
|
font.family: MaterialIcons.fontFamily
|
||||||
|
text: MaterialIcons.iso
|
||||||
|
}
|
||||||
|
Label {
|
||||||
|
id: isoLabel
|
||||||
|
text: metadata["Exif:ISOSpeedRatings"] || ""
|
||||||
|
elide: Text.ElideRight
|
||||||
|
horizontalAlignment: Text.AlignHLeft
|
||||||
|
}
|
||||||
|
}
|
||||||
// Metadata ListView
|
// Metadata ListView
|
||||||
ListView {
|
ListView {
|
||||||
id: metadataView
|
id: metadataView
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue