mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 02:08:25 +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
|
anchors.centerIn: parent
|
||||||
|
|
||||||
iconText: MaterialIcons.loop
|
iconText: MaterialIcons.loop
|
||||||
label: (root.iteration + 1) + "/" + root.loopSize + " "
|
label.text: (root.iteration + 1) + "/" + root.loopSize + " "
|
||||||
|
|
||||||
labelIconColor: palette.base
|
labelIconColor: palette.base
|
||||||
ToolTip.text: "Foreach Loop"
|
ToolTip.text: "Foreach Loop"
|
||||||
|
|
|
@ -9,15 +9,19 @@ import QtQuick.Layouts
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: control
|
id: control
|
||||||
|
property alias icon: iconItem
|
||||||
property alias iconText: iconItem.text
|
property alias iconText: iconItem.text
|
||||||
property alias iconSize: iconItem.font.pointSize
|
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 var labelIconColor: palette.text
|
||||||
|
property alias labelIconMouseArea: mouseArea
|
||||||
implicitWidth: childrenRect.width
|
implicitWidth: childrenRect.width
|
||||||
implicitHeight: childrenRect.height
|
implicitHeight: childrenRect.height
|
||||||
anchors.rightMargin: 5
|
anchors.rightMargin: 5
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
id: contentRow
|
||||||
Label {
|
Label {
|
||||||
id: iconItem
|
id: iconItem
|
||||||
font.family: MaterialIcons.fontFamily
|
font.family: MaterialIcons.fontFamily
|
||||||
|
|
|
@ -241,7 +241,7 @@ FloatingPane {
|
||||||
|
|
||||||
MaterialToolLabel {
|
MaterialToolLabel {
|
||||||
iconText: MaterialIcons.stop
|
iconText: MaterialIcons.stop
|
||||||
label: {
|
label.text: {
|
||||||
var id = undefined
|
var id = undefined
|
||||||
// Ensure there are entries in resectionGroups and a valid resectionId before accessing anything
|
// Ensure there are entries in resectionGroups and a valid resectionId before accessing anything
|
||||||
if (Viewer3DSettings.resectionId !== undefined && Viewer3DSettings.resectionGroups &&
|
if (Viewer3DSettings.resectionId !== undefined && Viewer3DSettings.resectionGroups &&
|
||||||
|
@ -259,7 +259,7 @@ FloatingPane {
|
||||||
|
|
||||||
MaterialToolLabel {
|
MaterialToolLabel {
|
||||||
iconText: MaterialIcons.auto_awesome_motion
|
iconText: MaterialIcons.auto_awesome_motion
|
||||||
label: {
|
label.text: {
|
||||||
let currentCameras = 0
|
let currentCameras = 0
|
||||||
if (Viewer3DSettings.resectionGroups) {
|
if (Viewer3DSettings.resectionGroups) {
|
||||||
for (let i = 0; i <= Viewer3DSettings.resectionIdCount; i++) {
|
for (let i = 0; i <= Viewer3DSettings.resectionIdCount; i++) {
|
||||||
|
@ -277,7 +277,7 @@ FloatingPane {
|
||||||
|
|
||||||
MaterialToolLabel {
|
MaterialToolLabel {
|
||||||
iconText: MaterialIcons.videocam
|
iconText: MaterialIcons.videocam
|
||||||
label: {
|
label.text: {
|
||||||
let totalCameras = 0
|
let totalCameras = 0
|
||||||
if (Viewer3DSettings.resectionGroups) {
|
if (Viewer3DSettings.resectionGroups) {
|
||||||
for (let i = 0; i <= Viewer3DSettings.resectionIdCount; i++) {
|
for (let i = 0; i <= Viewer3DSettings.resectionIdCount; i++) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue