chore(ForTests): Add objectName's for tests
This commit is contained in:
parent
78414b9c15
commit
e853eaa3ec
|
@ -69,6 +69,8 @@ RESOURCES += \
|
||||||
imports/Style.qml \
|
imports/Style.qml \
|
||||||
main.qml
|
main.qml
|
||||||
|
|
||||||
|
OTHER_FILES += $$files("$$PWD/*.qml", true)
|
||||||
|
|
||||||
# Additional import path used to resolve QML modules in Qt Creator's code model
|
# Additional import path used to resolve QML modules in Qt Creator's code model
|
||||||
QML_IMPORT_PATH = $$PWD/imports \
|
QML_IMPORT_PATH = $$PWD/imports \
|
||||||
$$PWD/StatusQ/src
|
$$PWD/StatusQ/src
|
||||||
|
|
|
@ -44,6 +44,7 @@ Popup {
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: headerContent
|
id: headerContent
|
||||||
|
objectName: "headerContent"
|
||||||
height: {
|
height: {
|
||||||
const count = children.length
|
const count = children.length
|
||||||
let h = 0
|
let h = 0
|
||||||
|
@ -63,6 +64,7 @@ Popup {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: title
|
text: title
|
||||||
|
objectName: "titleText"
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
font.bold: true
|
font.bold: true
|
||||||
|
@ -75,6 +77,7 @@ Popup {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: closeButton
|
id: closeButton
|
||||||
|
objectName: "closeButtonRectangle"
|
||||||
property bool hovered: false
|
property bool hovered: false
|
||||||
visible: displayCloseButton
|
visible: displayCloseButton
|
||||||
height: 32
|
height: 32
|
||||||
|
@ -88,6 +91,7 @@ Popup {
|
||||||
|
|
||||||
SVGImage {
|
SVGImage {
|
||||||
id: closeModalImg
|
id: closeModalImg
|
||||||
|
objectName: "closeImage"
|
||||||
source: "../img/close.svg"
|
source: "../img/close.svg"
|
||||||
width: 11
|
width: 11
|
||||||
height: 11
|
height: 11
|
||||||
|
@ -102,6 +106,7 @@ Popup {
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: closeModalMouseArea
|
id: closeModalMouseArea
|
||||||
|
objectName: "closeSensor"
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
|
@ -126,6 +131,7 @@ Popup {
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: popupContent
|
id: popupContent
|
||||||
|
objectName: "contentParent"
|
||||||
anchors.top: separator.bottom
|
anchors.top: separator.bottom
|
||||||
anchors.topMargin: Style.current.padding
|
anchors.topMargin: Style.current.padding
|
||||||
anchors.bottom: separator2.top
|
anchors.bottom: separator2.top
|
||||||
|
@ -145,6 +151,7 @@ Popup {
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: footerContent
|
id: footerContent
|
||||||
|
objectName: "footerParent"
|
||||||
visible: children.length > 0
|
visible: children.length > 0
|
||||||
height: visible ? children[0] && children[0].height : 0
|
height: visible ? children[0] && children[0].height : 0
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
Loading…
Reference in New Issue