Commit 64b18201 authored by Leander Schulten's avatar Leander Schulten

SettingsView: Wrap the GridLayout in a ScrollView so that you can see all...

SettingsView: Wrap the GridLayout in a ScrollView so that you can see all settings if the window is too small
parent 23e520f4
Pipeline #199280 passed with stage
in 5 minutes and 13 seconds
......@@ -6,10 +6,21 @@ import QtQuick.Window 2.12
import custom.licht 1.0
import "components"
Pane{
property bool visibleForUser: SwipeView.isCurrentItem
onVisibleForUserChanged: fileDialogLoader.load();
ScrollView{
property bool visibleForUser: SwipeView.isCurrentItem
onVisibleForUserChanged: {
if (visibleForUser) {
fileDialogLoader.load();
// show the scroll bar for a short time so that the user can see that you can scroll here
ScrollBar.vertical.active = true;
ScrollBar.vertical.active = false;
}
}
contentHeight: layout.implicitHeight
contentWidth: Math.max(600, width - 2 * padding)
padding: 10
GridLayout{
id: layout
anchors.left: parent.left
anchors.right: parent.right
rowSpacing: 4
......@@ -19,7 +30,7 @@ Pane{
}
RowLayout{
id: root
//enabled: UserManagment.currentUser.havePermission(Permission.CHANGE_SETTINGS_FILE_PATH)
enabled: UserManagment.currentUser.havePermission(Permission.CHANGE_SETTINGS_FILE_PATH)
Item{
Layout.fillWidth: true
Layout.preferredWidth: inputSettingsPath.implicitWidth
......@@ -322,3 +333,4 @@ Pane{
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment