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
|
2021-01-18 20:25:20 +00:00
|
|
|
property int topMargin: 46
|
2020-10-21 14:45:28 +00:00
|
|
|
property alias changeProfileSection: leftTab.changeProfileSection
|
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 {
|
2021-02-18 19:14:31 +00:00
|
|
|
target: appMain
|
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-11-30 17:03:52 +00:00
|
|
|
MyProfileContainer {}
|
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-10-21 14:45:28 +00:00
|
|
|
BrowserContainer {}
|
|
|
|
|
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}
|
|
|
|
}
|
|
|
|
##^##*/
|