mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Add ids with interactable components
Makes it easier to perform automatic ui testing contributes to CURA-8689
This commit is contained in:
parent
c892bac27f
commit
c5788be6f7
2 changed files with 6 additions and 0 deletions
|
@ -49,6 +49,7 @@ Control
|
||||||
|
|
||||||
PrinterCard
|
PrinterCard
|
||||||
{
|
{
|
||||||
|
id: ultimakerPrinterCard
|
||||||
onClicked: goToUltimakerPrinter
|
onClicked: goToUltimakerPrinter
|
||||||
text: catalog.i18nc("@button", "Ultimaker printer")
|
text: catalog.i18nc("@button", "Ultimaker printer")
|
||||||
imageSource: UM.Theme.getImage("ultimaker_printer")
|
imageSource: UM.Theme.getImage("ultimaker_printer")
|
||||||
|
@ -56,6 +57,7 @@ Control
|
||||||
|
|
||||||
PrinterCard
|
PrinterCard
|
||||||
{
|
{
|
||||||
|
id: thrirdPartyPrinterCard
|
||||||
onClicked: goToThirdPartyPrinter
|
onClicked: goToThirdPartyPrinter
|
||||||
text: catalog.i18nc("@button", "Non Ultimaker printer")
|
text: catalog.i18nc("@button", "Non Ultimaker printer")
|
||||||
imageSource: UM.Theme.getImage("third_party_printer")
|
imageSource: UM.Theme.getImage("third_party_printer")
|
||||||
|
@ -64,6 +66,7 @@ Control
|
||||||
|
|
||||||
Cura.TertiaryButton
|
Cura.TertiaryButton
|
||||||
{
|
{
|
||||||
|
id: learnMoreButton
|
||||||
Layout.alignment: Qt.AlignBottom
|
Layout.alignment: Qt.AlignBottom
|
||||||
text: catalog.i18nc("@button", "Learn more about adding printers to Cura")
|
text: catalog.i18nc("@button", "Learn more about adding printers to Cura")
|
||||||
iconSource: UM.Theme.getIcon("LinkExternal")
|
iconSource: UM.Theme.getIcon("LinkExternal")
|
||||||
|
|
|
@ -80,6 +80,7 @@ Control
|
||||||
|
|
||||||
Cura.TertiaryButton
|
Cura.TertiaryButton
|
||||||
{
|
{
|
||||||
|
id: learnMoreButton
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.alignment: Qt.AlignTop
|
Layout.alignment: Qt.AlignTop
|
||||||
text: catalog.i18nc("@button", "Learn more")
|
text: catalog.i18nc("@button", "Learn more")
|
||||||
|
@ -101,6 +102,7 @@ Control
|
||||||
|
|
||||||
Cura.SecondaryButton
|
Cura.SecondaryButton
|
||||||
{
|
{
|
||||||
|
id: addLocalPrinterButton
|
||||||
Layout.alignment: Qt.AlignLeft
|
Layout.alignment: Qt.AlignLeft
|
||||||
text: catalog.i18nc("@button", "Add local printer")
|
text: catalog.i18nc("@button", "Add local printer")
|
||||||
onClicked: goToThirdPartyPrinter()
|
onClicked: goToThirdPartyPrinter()
|
||||||
|
@ -108,6 +110,7 @@ Control
|
||||||
|
|
||||||
Cura.PrimaryButton
|
Cura.PrimaryButton
|
||||||
{
|
{
|
||||||
|
id: signInButton
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
text: catalog.i18nc("@button", "Sign in to Digital Factory")
|
text: catalog.i18nc("@button", "Sign in to Digital Factory")
|
||||||
onClicked: function()
|
onClicked: function()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue