status-desktop/ui/app/AppLayouts/Profile/LeftTab/Menu.qml

40 lines
994 B
QML
Raw Normal View History

2020-06-17 19:18:31 +00:00
import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
2020-05-27 20:57:36 +00:00
import "../../../../imports"
import "../../../../shared"
import "./components"
import "./constants.js" as ProfileConstants
2020-05-27 20:57:36 +00:00
ScrollView {
property int profileCurrentIndex: ProfileConstants.PROFILE
2020-05-27 20:57:36 +00:00
readonly property int btnheight: 42
2020-06-25 16:58:21 +00:00
readonly property int w: 340
2020-05-27 20:57:36 +00:00
id: profileMenu
Column {
anchors.fill: parent
spacing: 8
Repeater {
model: ProfileConstants.menuButtons
delegate: MenuButton {
text: modelData .text
source: "../../../img/" + modelData .filename
active: profileMenu.profileCurrentIndex === modelData.id
Layout.fillWidth: true
onClicked: function () {
profileMenu.profileCurrentIndex = modelData.id
2020-06-17 20:33:44 +00:00
}
2020-05-27 20:57:36 +00:00
}
}
}
2020-05-27 21:28:25 +00:00
}
/*##^##
Designer {
D{i:0;formeditorColor:"#ffffff";height:500;width:340}
}
##^##*/