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-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-09-15 19:47:13 +00:00
|
|
|
Connections {
|
2020-09-16 14:28:03 +00:00
|
|
|
target: applicationWindow
|
2020-09-15 19:47:13 +00:00
|
|
|
onSettingsLoaded: {
|
|
|
|
// Add recent
|
|
|
|
profileView.restoreState(appSettings.profileSplitView)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Component.onDestruction: appSettings.profileSplitView = this.saveState()
|
2020-06-23 20:49:04 +00:00
|
|
|
|
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-08-03 20:46:37 +00:00
|
|
|
anchors.rightMargin: Style.current.padding
|
2020-05-19 19:44:45 +00:00
|
|
|
anchors.left: leftTab.right
|
2020-08-03 20:46:37 +00:00
|
|
|
anchors.leftMargin: Style.current.padding
|
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
|
2020-08-06 18:19:26 +00:00
|
|
|
ensName: profileModel.ens.preferredUsername
|
2020-07-22 19:41:27 +00:00
|
|
|
identicon: profileModel.profile.identicon
|
|
|
|
pubkey: profileModel.profile.pubKey
|
|
|
|
}
|
2020-05-19 19:44:45 +00:00
|
|
|
|
2020-08-04 22:22:51 +00:00
|
|
|
onCurrentIndexChanged: {
|
|
|
|
if(visibleChildren[0] === ensContainer){
|
|
|
|
ensContainer.goToStart();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-27 21:28:25 +00:00
|
|
|
ContactsContainer {}
|
2020-05-19 19:44:45 +00:00
|
|
|
|
2020-08-04 22:22:51 +00:00
|
|
|
EnsContainer {
|
|
|
|
id: ensContainer
|
|
|
|
}
|
2020-07-21 21:03:22 +00:00
|
|
|
|
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-09-15 17:42:23 +00:00
|
|
|
AdvancedContainer {}
|
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}
|
|
|
|
}
|
|
|
|
##^##*/
|