Commit 55a87d86 authored by Leander Schulten's avatar Leander Schulten

UI: LoginView: Use Popups instead of Dialogs. See #57

parent e4a8bd3f
import QtQuick 2.7 import QtQuick 2.12
import QtQuick.Controls 2.0 import QtQuick.Controls 2.12
import QtQuick.Layouts 1.0 import QtQuick.Controls.Material 2.12
import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.12
import custom.licht 1.0 import custom.licht 1.0
import "components" import "components"
...@@ -171,11 +171,12 @@ Item{ ...@@ -171,11 +171,12 @@ Item{
easing.type: Easing.Linear easing.type: Easing.Linear
} }
Dialog{ Popup{
modality: Qt.WindowModal modal: true
id:dialog id:dialog
title: "Enter Password"
width:300 width:300
x: (parent.width - width) / 2
y: (parent.height - height) / 2
property var user; property var user;
onVisibleChanged: { onVisibleChanged: {
if(visible) if(visible)
...@@ -213,11 +214,12 @@ Item{ ...@@ -213,11 +214,12 @@ Item{
} }
} }
} }
Dialog{ Popup{
modality: Qt.WindowModal modal: true
id:addUserDialog id:addUserDialog
title: "Create new user."
width:300 width:300
x: (parent.width - width) / 2
y: (parent.height - height) / 2
onVisibleChanged:{ onVisibleChanged:{
if(visible){ if(visible){
username.text = "";; username.text = "";;
...@@ -230,6 +232,14 @@ Item{ ...@@ -230,6 +232,14 @@ Item{
GridLayout{ GridLayout{
anchors.fill: parent anchors.fill: parent
columns: 2 columns: 2
Label{
text: "Create new user"
font.pointSize: 15
font.bold: true
Layout.bottomMargin: 10
Layout.columnSpan: 2
}
Label{ Label{
text:"Username : " text:"Username : "
} }
......
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