feat(shared/controls): Moved foldable header and generic list view from wallet to shared
Renamed `ManageTokensListViewBase` to `EmptyShapeRectangleFooterListView` and moved `FoldableHeader` to shared/controls. Updated related `ManageXXPanel` components.
This commit is contained in:
parent
32feaff6d7
commit
d5134fe864
|
@ -8,7 +8,7 @@ import StatusQ.Core.Utils 0.1
|
||||||
|
|
||||||
import AppLayouts.Wallet.controls 1.0
|
import AppLayouts.Wallet.controls 1.0
|
||||||
|
|
||||||
import "internals"
|
import shared.controls 1.0
|
||||||
|
|
||||||
DoubleFlickableWithFolding {
|
DoubleFlickableWithFolding {
|
||||||
id: root
|
id: root
|
||||||
|
@ -46,7 +46,7 @@ DoubleFlickableWithFolding {
|
||||||
visible: resolveVisibility(policy, root.height, root.contentHeight)
|
visible: resolveVisibility(policy, root.height, root.contentHeight)
|
||||||
}
|
}
|
||||||
|
|
||||||
flickable1: ManageTokensListViewBase {
|
flickable1: EmptyShapeRectangleFooterListView {
|
||||||
model: root.controller.regularTokensModel
|
model: root.controller.regularTokensModel
|
||||||
width: root.width
|
width: root.width
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ DoubleFlickableWithFolding {
|
||||||
placeholderText: qsTr("Your assets will appear here")
|
placeholderText: qsTr("Your assets will appear here")
|
||||||
}
|
}
|
||||||
|
|
||||||
flickable2: ManageTokensListViewBase {
|
flickable2: EmptyShapeRectangleFooterListView {
|
||||||
width: root.width
|
width: root.width
|
||||||
|
|
||||||
model: root.controller.arrangeByCommunity ? communityGroupedModel
|
model: root.controller.arrangeByCommunity ? communityGroupedModel
|
||||||
|
|
|
@ -8,7 +8,7 @@ import StatusQ.Core.Utils 0.1
|
||||||
|
|
||||||
import AppLayouts.Wallet.controls 1.0
|
import AppLayouts.Wallet.controls 1.0
|
||||||
|
|
||||||
import "internals"
|
import shared.controls 1.0
|
||||||
|
|
||||||
DoubleFlickableWithFolding {
|
DoubleFlickableWithFolding {
|
||||||
id: root
|
id: root
|
||||||
|
@ -37,7 +37,7 @@ DoubleFlickableWithFolding {
|
||||||
visible: resolveVisibility(policy, root.height, root.contentHeight)
|
visible: resolveVisibility(policy, root.height, root.contentHeight)
|
||||||
}
|
}
|
||||||
|
|
||||||
flickable1: ManageTokensListViewBase {
|
flickable1: EmptyShapeRectangleFooterListView {
|
||||||
objectName: "communityTokensListView"
|
objectName: "communityTokensListView"
|
||||||
|
|
||||||
width: root.width
|
width: root.width
|
||||||
|
@ -61,7 +61,7 @@ DoubleFlickableWithFolding {
|
||||||
placeholderText: qsTr("Your community minted collectibles will appear here")
|
placeholderText: qsTr("Your community minted collectibles will appear here")
|
||||||
}
|
}
|
||||||
|
|
||||||
flickable2: ManageTokensListViewBase {
|
flickable2: EmptyShapeRectangleFooterListView {
|
||||||
objectName: "otherTokensListView"
|
objectName: "otherTokensListView"
|
||||||
|
|
||||||
width: root.width
|
width: root.width
|
||||||
|
|
|
@ -1,36 +1,29 @@
|
||||||
import QtQuick 2.15
|
import QtQuick 2.15
|
||||||
import QtQuick.Layouts 1.15
|
import QtQuick.Controls 2.15
|
||||||
import QtQml 2.15
|
import QtQml 2.15
|
||||||
|
|
||||||
import StatusQ.Controls 0.1
|
|
||||||
import StatusQ.Core 0.1
|
import StatusQ.Core 0.1
|
||||||
import QtQuick.Controls 2.15
|
|
||||||
import StatusQ.Core.Theme 0.1
|
|
||||||
|
|
||||||
import shared.controls 1.0
|
|
||||||
|
|
||||||
StatusListView {
|
StatusListView {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
property string placeholderText
|
property string placeholderText
|
||||||
|
property int placeholderHeight: 44
|
||||||
|
|
||||||
|
// TO BE REMOVE: #13498
|
||||||
|
property bool empty: root.model && root.count === 0
|
||||||
|
|
||||||
ScrollBar.vertical: null
|
ScrollBar.vertical: null
|
||||||
|
|
||||||
QtObject {
|
|
||||||
id: d
|
|
||||||
|
|
||||||
readonly property int placeholderHeight: 44
|
|
||||||
}
|
|
||||||
|
|
||||||
Binding {
|
Binding {
|
||||||
when: root.model && root.count === 0
|
when: root.empty// TO BE REPLACE by (#13498): root.model && root.count === 0
|
||||||
target: root
|
target: root
|
||||||
property: "footer"
|
property: "footer"
|
||||||
restoreMode: Binding.RestoreBindingOrValue
|
restoreMode: Binding.RestoreBindingOrValue
|
||||||
|
|
||||||
value: Component {
|
value: Component {
|
||||||
Item {
|
Item {
|
||||||
height: d.placeholderHeight
|
height: root.placeholderHeight
|
||||||
width: root.width
|
width: root.width
|
||||||
|
|
||||||
ShapeRectangle {
|
ShapeRectangle {
|
|
@ -10,7 +10,9 @@ CopyToClipBoardButton 1.0 CopyToClipBoardButton.qml
|
||||||
CurrencyAmountInput 1.0 CurrencyAmountInput.qml
|
CurrencyAmountInput 1.0 CurrencyAmountInput.qml
|
||||||
DisabledTooltipButton 1.0 DisabledTooltipButton.qml
|
DisabledTooltipButton 1.0 DisabledTooltipButton.qml
|
||||||
EmojiHash 1.0 EmojiHash.qml
|
EmojiHash 1.0 EmojiHash.qml
|
||||||
|
EmptyShapeRectangleFooterListView 1.0 EmptyShapeRectangleFooterListView.qml
|
||||||
ErrorDetails 1.0 ErrorDetails.qml
|
ErrorDetails 1.0 ErrorDetails.qml
|
||||||
|
FoldableHeader 1.0 FoldableHeader.qml
|
||||||
FormGroup 1.0 FormGroup.qml
|
FormGroup 1.0 FormGroup.qml
|
||||||
GetSyncCodeDesktopInstructions 1.0 GetSyncCodeDesktopInstructions.qml
|
GetSyncCodeDesktopInstructions 1.0 GetSyncCodeDesktopInstructions.qml
|
||||||
GetSyncCodeMobileInstructions 1.0 GetSyncCodeMobileInstructions.qml
|
GetSyncCodeMobileInstructions 1.0 GetSyncCodeMobileInstructions.qml
|
||||||
|
|
Loading…
Reference in New Issue