qml: new object names for token selector panel

This commit is contained in:
Anastasiya Semenkevich 2024-09-03 17:29:22 +03:00 committed by Anastasiya
parent 94c62dae26
commit 9598e9a44c
3 changed files with 13 additions and 0 deletions

View File

@ -444,6 +444,9 @@ Item {
StatusBaseInput { StatusBaseInput {
id: statusBaseInput id: statusBaseInput
objectName: "statusBaseInput"
implicitWidth: parent.width implicitWidth: parent.width
implicitHeight: internal.inputHeight implicitHeight: internal.inputHeight
Layout.alignment: Qt.AlignTop Layout.alignment: Qt.AlignTop

View File

@ -139,6 +139,8 @@ Control {
contentItem: TokenSelectorPanel { contentItem: TokenSelectorPanel {
id: tokenSelectorPanel id: tokenSelectorPanel
objectName: "tokenSelectorPanel"
function findSubitem(key) { function findSubitem(key) {
const count = collectiblesModel.rowCount() const count = collectiblesModel.rowCount()

View File

@ -119,6 +119,8 @@ Control {
StatusTabBar { StatusTabBar {
id: tabBar id: tabBar
objectName: "tokensTabBar"
visible: !!root.assetsModel && !!root.collectiblesModel visible: !!root.assetsModel && !!root.collectiblesModel
currentIndex: !!root.assetsModel currentIndex: !!root.assetsModel
@ -126,6 +128,9 @@ Control {
: TokenSelectorPanel.Tabs.Collectibles : TokenSelectorPanel.Tabs.Collectibles
StatusTabButton { StatusTabButton {
objectName: "assetsTab"
text: qsTr("Assets") text: qsTr("Assets")
width: implicitWidth width: implicitWidth
@ -133,6 +138,9 @@ Control {
} }
StatusTabButton { StatusTabButton {
objectName: "collectiblesTab"
text: qsTr("Collectibles") text: qsTr("Collectibles")
width: implicitWidth width: implicitWidth