feat(CPP): Saved addresses section
This commit is contained in:
parent
abb2254e59
commit
89bd073eed
|
@ -23,6 +23,7 @@ qt6_add_qml_module(Wallet
|
|||
qml/Status/Wallet/AssetView.qml
|
||||
qml/Status/Wallet/WalletContentView.qml
|
||||
qml/Status/Wallet/WalletView.qml
|
||||
qml/Status/Wallet/SavedAddressesView.qml
|
||||
|
||||
# Required to suppress "qmllint may not work" warning
|
||||
OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Status/Wallet/
|
||||
|
@ -79,4 +80,6 @@ target_sources(Wallet
|
|||
src/WalletAsset.cpp
|
||||
include/Status/Wallet/WalletController.h
|
||||
src/WalletController.cpp
|
||||
include/Status/Wallet/SavedAddressesController.h
|
||||
src/SavedAddressesController.cpp
|
||||
)
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include <QtQmlIntegration>
|
||||
|
||||
namespace Status::Wallet
|
||||
{
|
||||
|
||||
class SavedAddressesController : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
QML_ELEMENT
|
||||
QML_UNCREATABLE("C++ only")
|
||||
|
||||
public:
|
||||
SavedAddressesController(QObject* parent = nullptr);
|
||||
};
|
||||
|
||||
} // namespace Status::Wallet
|
|
@ -0,0 +1,11 @@
|
|||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
|
||||
import Status.Wallet
|
||||
import Status.Containers
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
||||
}
|
|
@ -22,7 +22,7 @@ Item {
|
|||
}
|
||||
TabBar {
|
||||
id: tabBar
|
||||
width: parent.width
|
||||
Layout.fillWidth: true
|
||||
|
||||
TabButton {
|
||||
text: qsTr("Assets")
|
||||
|
@ -30,6 +30,9 @@ Item {
|
|||
TabButton {
|
||||
text: qsTr("Positions")
|
||||
}
|
||||
TabButton {
|
||||
text: qsTr("Saved Addresses")
|
||||
}
|
||||
}
|
||||
|
||||
SwipeView {
|
||||
|
@ -69,6 +72,13 @@ Item {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loader {
|
||||
active: SwipeView.isCurrentItem
|
||||
sourceComponent: SavedAddressesView {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#include "Status/Wallet/SavedAddressesController.h"
|
||||
|
||||
namespace Status::Wallet
|
||||
{
|
||||
|
||||
SavedAddressesController::SavedAddressesController(QObject* parent)
|
||||
: QObject(parent)
|
||||
{ }
|
||||
} // namespace Status::Wallet
|
Loading…
Reference in New Issue