2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2020-05-19 19:44:45 +00:00
|
|
|
import "../../../imports"
|
|
|
|
import "../../../shared"
|
2020-05-27 21:28:25 +00:00
|
|
|
import "./Sections"
|
2020-05-19 19:44:45 +00:00
|
|
|
|
2020-06-11 21:29:30 +00:00
|
|
|
SplitView {
|
2020-06-23 20:49:04 +00:00
|
|
|
property var appSettings
|
2020-07-21 21:03:22 +00:00
|
|
|
property int contentMargin: 120
|
2020-06-23 20:49:04 +00:00
|
|
|
|
2020-05-19 19:44:45 +00:00
|
|
|
id: profileView
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
2020-06-23 18:51:10 +00:00
|
|
|
handle: SplitViewHandle {}
|
2020-06-11 21:29:30 +00:00
|
|
|
|
2020-06-23 20:49:04 +00:00
|
|
|
Component.onCompleted: this.restoreState(appSettings.profileSplitView)
|
|
|
|
Component.onDestruction: appSettings.profileSplitView = this.saveState()
|
|
|
|
|
2020-05-19 19:44:45 +00:00
|
|
|
LeftTab {
|
|
|
|
id: leftTab
|
2020-07-02 15:14:31 +00:00
|
|
|
SplitView.preferredWidth: Style.current.leftTabPrefferedSize
|
|
|
|
SplitView.minimumWidth: Style.current.leftTabMinimumWidth
|
|
|
|
SplitView.maximumWidth: Style.current.leftTabMaximumWidth
|
2020-05-19 19:44:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StackLayout {
|
|
|
|
id: profileContainer
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 0
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.bottomMargin: 0
|
|
|
|
anchors.right: parent.right
|
2020-07-24 11:27:26 +00:00
|
|
|
anchors.rightMargin: 113
|
2020-05-19 19:44:45 +00:00
|
|
|
anchors.left: leftTab.right
|
2020-07-24 11:27:26 +00:00
|
|
|
anchors.leftMargin: 113
|
2020-05-19 19:44:45 +00:00
|
|
|
currentIndex: leftTab.currentTab
|
|
|
|
|
2020-07-21 21:03:22 +00:00
|
|
|
// This list needs to match LeftTab/constants.js
|
|
|
|
// Would be better if we could make them match automatically
|
2020-07-22 19:41:27 +00:00
|
|
|
MyProfileContainer {
|
|
|
|
username: profileModel.profile.username
|
|
|
|
identicon: profileModel.profile.identicon
|
|
|
|
pubkey: profileModel.profile.pubKey
|
|
|
|
address: profileModel.profile.address
|
|
|
|
}
|
2020-05-19 19:44:45 +00:00
|
|
|
|
2020-05-27 21:28:25 +00:00
|
|
|
ContactsContainer {}
|
2020-05-19 19:44:45 +00:00
|
|
|
|
2020-07-21 21:03:22 +00:00
|
|
|
EnsContainer {}
|
|
|
|
|
2020-05-27 21:28:25 +00:00
|
|
|
PrivacyContainer {}
|
2020-05-19 19:44:45 +00:00
|
|
|
|
2020-07-21 21:03:22 +00:00
|
|
|
AppearanceContainer {}
|
2020-07-03 16:54:27 +00:00
|
|
|
|
2020-07-21 21:03:22 +00:00
|
|
|
SoundsContainer {}
|
2020-05-24 22:23:00 +00:00
|
|
|
|
2020-05-27 21:28:25 +00:00
|
|
|
LanguageContainer {}
|
2020-05-24 22:23:00 +00:00
|
|
|
|
2020-05-27 21:28:25 +00:00
|
|
|
NotificationsContainer {}
|
2020-05-24 22:23:00 +00:00
|
|
|
|
2020-07-21 21:03:22 +00:00
|
|
|
SyncContainer {}
|
|
|
|
|
|
|
|
DevicesContainer {}
|
|
|
|
|
2020-07-10 15:37:23 +00:00
|
|
|
AdvancedContainer {
|
2020-07-14 21:23:17 +00:00
|
|
|
appSettings: profileView.appSettings
|
2020-07-10 15:37:23 +00:00
|
|
|
}
|
2020-05-24 22:23:00 +00:00
|
|
|
|
2020-05-27 21:28:25 +00:00
|
|
|
HelpContainer {}
|
2020-05-19 19:44:45 +00:00
|
|
|
|
2020-05-27 21:28:25 +00:00
|
|
|
AboutContainer {}
|
2020-05-19 19:44:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;autoSize:true;height:480;width:640}
|
|
|
|
}
|
|
|
|
##^##*/
|