Commit c9ae6c8b authored by Leander Schulten's avatar Leander Schulten

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

parent 55a87d86
import QtQuick 2.7
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.0
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import QtGraphicalEffects 1.0
import QtQuick.Dialogs 1.2
import custom.licht 1.0
import "../HelpSystem"
......@@ -157,10 +156,11 @@ ControlPanel{
}
Dialog{
modality: Qt.WindowModal
modal: true
x: (parent.width - width) / 2
y: (parent.height - height) / 2
id:selectProgramDialog
property int select: ControlView.Select.Program
title: select === ControlView.Select.Program?"Select Program":"Select ProgramBlock"
width:300
function createProgram(){
select = ControlView.Select.Program;
......@@ -170,13 +170,15 @@ ControlPanel{
select = ControlView.Select.ProgramBlock;
visible = true;
}
contentItem: RowLayout {
Pane{
Layout.fillWidth: true
ColumnLayout{
anchors.left: parent.left
anchors.right: parent.right
spacing: 10
contentItem: ColumnLayout{
spacing: 8
Label{
text: selectProgramDialog.select === ControlView.Select.Program ? "Select Program" : "Select ProgramBlock"
font.bold: true
font.pointSize: 14
}
ComboBox{
Layout.fillWidth: true
id:programmSelect
......@@ -205,8 +207,6 @@ ControlPanel{
}
}
}
}
}
Help{
id: help
......
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