2022-12-06 11:19:20 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
import QtQuick.Layouts 1.14
|
|
|
|
|
|
|
|
import Storybook 1.0
|
2023-01-24 21:48:42 +00:00
|
|
|
import Models 1.0
|
2022-12-06 11:19:20 +00:00
|
|
|
|
|
|
|
import AppLayouts.Chat.controls.community 1.0
|
|
|
|
|
2023-03-15 17:14:31 +00:00
|
|
|
SplitView {
|
2022-12-06 11:19:20 +00:00
|
|
|
id: root
|
|
|
|
|
2023-03-15 17:14:31 +00:00
|
|
|
orientation: Qt.Vertical
|
2022-12-06 11:19:20 +00:00
|
|
|
|
2023-03-15 17:14:31 +00:00
|
|
|
Item {
|
|
|
|
id: container
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.margins: 50
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
|
|
|
|
Label {
|
|
|
|
text: "Open flow:"
|
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
text: "Add"
|
|
|
|
onClicked: {
|
|
|
|
holdingsDropdown.close()
|
|
|
|
holdingsDropdown.open()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Button {
|
|
|
|
text: "Update"
|
|
|
|
onClicked: {
|
|
|
|
holdingsDropdown.close()
|
|
|
|
holdingsDropdown.setActiveTab(HoldingTypes.Type.Ens)
|
|
|
|
holdingsDropdown.openUpdateFlow()
|
|
|
|
}
|
2023-01-18 19:54:14 +00:00
|
|
|
}
|
2022-12-06 11:19:20 +00:00
|
|
|
}
|
|
|
|
|
2023-03-15 17:14:31 +00:00
|
|
|
HoldingsDropdown {
|
|
|
|
id: holdingsDropdown
|
|
|
|
|
|
|
|
parent: container
|
|
|
|
anchors.centerIn: container
|
|
|
|
|
|
|
|
collectiblesModel: CollectiblesModel {}
|
|
|
|
assetsModel: AssetsModel {}
|
|
|
|
isENSTab: isEnsTabChecker.checked
|
2023-03-23 16:10:56 +00:00
|
|
|
isCollectiblesOnly: isCollectiblesOnlyChecker.checked
|
2023-03-15 17:14:31 +00:00
|
|
|
|
|
|
|
onOpened: contentItem.parent.parent = container
|
|
|
|
Component.onCompleted: {
|
2023-01-18 19:54:14 +00:00
|
|
|
holdingsDropdown.close()
|
2023-03-15 17:14:31 +00:00
|
|
|
holdingsDropdown.open()
|
2023-01-18 19:54:14 +00:00
|
|
|
}
|
2022-12-06 11:19:20 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2023-03-15 17:14:31 +00:00
|
|
|
LogsAndControlsPanel {
|
|
|
|
SplitView.minimumHeight: 100
|
|
|
|
SplitView.preferredHeight: 250
|
2022-12-06 11:19:20 +00:00
|
|
|
|
2023-03-23 16:10:56 +00:00
|
|
|
RowLayout {
|
|
|
|
CheckBox {
|
|
|
|
id: isEnsTabChecker
|
|
|
|
text: "Is ENS tab visible?"
|
|
|
|
checked: true
|
|
|
|
}
|
|
|
|
|
|
|
|
CheckBox {
|
|
|
|
id: isCollectiblesOnlyChecker
|
|
|
|
text: "Is collectibles only visible?"
|
|
|
|
checked: false
|
|
|
|
}
|
2023-01-18 19:54:14 +00:00
|
|
|
}
|
2022-12-06 11:19:20 +00:00
|
|
|
}
|
|
|
|
}
|