mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-30 14:58:37 +02:00
[MaterialIcons] MaterialToolLabel: Add new accessors to the item's elements
This commit is contained in:
parent
50c4347db0
commit
06f9d157c8
3 changed files with 9 additions and 5 deletions
|
@ -118,7 +118,7 @@ Item {
|
|||
anchors.centerIn: parent
|
||||
|
||||
iconText: MaterialIcons.loop
|
||||
label: (root.iteration + 1) + "/" + root.loopSize + " "
|
||||
label.text: (root.iteration + 1) + "/" + root.loopSize + " "
|
||||
|
||||
labelIconColor: palette.base
|
||||
ToolTip.text: "Foreach Loop"
|
||||
|
|
|
@ -9,15 +9,19 @@ import QtQuick.Layouts
|
|||
|
||||
Item {
|
||||
id: control
|
||||
property alias icon: iconItem
|
||||
property alias iconText: iconItem.text
|
||||
property alias iconSize: iconItem.font.pointSize
|
||||
property alias label: labelItem.text
|
||||
property alias label: labelItem
|
||||
property alias labelIconRow: contentRow
|
||||
property var labelIconColor: palette.text
|
||||
property alias labelIconMouseArea: mouseArea
|
||||
implicitWidth: childrenRect.width
|
||||
implicitHeight: childrenRect.height
|
||||
anchors.rightMargin: 5
|
||||
|
||||
RowLayout {
|
||||
id: contentRow
|
||||
Label {
|
||||
id: iconItem
|
||||
font.family: MaterialIcons.fontFamily
|
||||
|
|
|
@ -241,7 +241,7 @@ FloatingPane {
|
|||
|
||||
MaterialToolLabel {
|
||||
iconText: MaterialIcons.stop
|
||||
label: {
|
||||
label.text: {
|
||||
var id = undefined
|
||||
// Ensure there are entries in resectionGroups and a valid resectionId before accessing anything
|
||||
if (Viewer3DSettings.resectionId !== undefined && Viewer3DSettings.resectionGroups &&
|
||||
|
@ -259,7 +259,7 @@ FloatingPane {
|
|||
|
||||
MaterialToolLabel {
|
||||
iconText: MaterialIcons.auto_awesome_motion
|
||||
label: {
|
||||
label.text: {
|
||||
let currentCameras = 0
|
||||
if (Viewer3DSettings.resectionGroups) {
|
||||
for (let i = 0; i <= Viewer3DSettings.resectionIdCount; i++) {
|
||||
|
@ -277,7 +277,7 @@ FloatingPane {
|
|||
|
||||
MaterialToolLabel {
|
||||
iconText: MaterialIcons.videocam
|
||||
label: {
|
||||
label.text: {
|
||||
let totalCameras = 0
|
||||
if (Viewer3DSettings.resectionGroups) {
|
||||
for (let i = 0; i <= Viewer3DSettings.resectionIdCount; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue