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
|
|
|
|
2021-06-16 11:15:28 +00:00
|
|
|
import StatusQ.Layout 0.1
|
|
|
|
|
|
|
|
StatusAppTwoPanelLayout {
|
|
|
|
|
|
|
|
id: profileView
|
|
|
|
|
2021-03-18 09:33:39 +00:00
|
|
|
property int contentMaxWidth: 624
|
2021-04-08 15:44:58 +00:00
|
|
|
property int contentMinWidth: 450
|
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
|
|
|
|
2021-06-16 11:15:28 +00:00
|
|
|
leftPanel: LeftTab {
|
2020-05-19 19:44:45 +00:00
|
|
|
id: leftTab
|
2021-06-16 11:15:28 +00:00
|
|
|
anchors.fill:parent
|
2020-05-19 19:44:45 +00:00
|
|
|
}
|
|
|
|
|
2021-06-16 11:15:28 +00:00
|
|
|
rightPanel: StackLayout {
|
|
|
|
id: profileContainer
|
2021-04-08 15:44:58 +00:00
|
|
|
property int profileContentWidth: Math.max(contentMinWidth, Math.min(profileContainer.width * 0.8, contentMaxWidth))
|
2021-06-16 11:15:28 +00:00
|
|
|
anchors.fill: parent
|
2021-04-08 15:44:58 +00:00
|
|
|
|
2021-07-20 15:22:09 +00:00
|
|
|
currentIndex: Config.currentMenuTab
|
2020-05-19 19:44:45 +00:00
|
|
|
|
2020-08-04 22:22:51 +00:00
|
|
|
onCurrentIndexChanged: {
|
|
|
|
if(visibleChildren[0] === ensContainer){
|
|
|
|
ensContainer.goToStart();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-16 11:15:28 +00:00
|
|
|
// This list needs to match LeftTab/constants.js
|
|
|
|
// Would be better if we could make them match automatically
|
|
|
|
MyProfileContainer {}
|
|
|
|
|
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}
|
|
|
|
}
|
|
|
|
##^##*/
|