2024-07-11 10:02:24 +02:00
|
|
|
import QtQuick
|
2024-07-08 16:08:21 +02:00
|
|
|
import QtQuick.Window
|
|
|
|
import QtQuick.Layouts
|
2024-07-10 15:00:00 +02:00
|
|
|
import QtQuick.Controls 2.15
|
2024-07-08 16:08:21 +02:00
|
|
|
|
|
|
|
Window {
|
2024-07-09 17:50:34 +02:00
|
|
|
SystemPalette { id: activeColors; colorGroup: SystemPalette.Active }
|
|
|
|
SystemPalette { id: inactiveColors; colorGroup: SystemPalette.Inactive }
|
|
|
|
SystemPalette { id: disabledColors; colorGroup: SystemPalette.Disabled }
|
2024-07-09 12:36:14 +02:00
|
|
|
|
2024-07-09 18:04:57 +02:00
|
|
|
function getColors() {
|
|
|
|
return root.active ? activeColors : inactiveColors;
|
|
|
|
}
|
|
|
|
|
2024-07-08 16:08:21 +02:00
|
|
|
id: root
|
|
|
|
width: 640
|
|
|
|
height: 480
|
|
|
|
visible: true
|
2024-07-09 18:04:57 +02:00
|
|
|
color: getColors().window
|
2024-07-08 16:08:21 +02:00
|
|
|
|
2024-07-09 17:50:34 +02:00
|
|
|
title: qsTr("Alisa - License Managment")
|
2024-07-08 16:08:21 +02:00
|
|
|
|
|
|
|
Rectangle {
|
2024-07-09 17:50:34 +02:00
|
|
|
id: s1
|
2024-07-08 16:08:21 +02:00
|
|
|
anchors {
|
|
|
|
top: parent.top
|
|
|
|
left: parent.left
|
2024-07-09 18:04:57 +02:00
|
|
|
right: parent.right
|
2024-07-08 16:08:21 +02:00
|
|
|
}
|
2024-07-10 22:24:28 +02:00
|
|
|
radius: 10
|
|
|
|
height: 50
|
2024-07-09 17:50:34 +02:00
|
|
|
border.width: 5
|
2024-07-09 18:04:57 +02:00
|
|
|
border.color: getColors().accent
|
|
|
|
color: getColors().midlight
|
2024-07-10 22:24:28 +02:00
|
|
|
|
|
|
|
TextField {
|
|
|
|
anchors{
|
|
|
|
verticalCenter: s1.verticalCenter
|
2024-07-11 10:02:24 +02:00
|
|
|
rightMargin: 5
|
|
|
|
right: logginB.left
|
2024-07-10 22:24:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
placeholderText: qsTr("Seach")
|
|
|
|
|
2024-07-11 10:02:24 +02:00
|
|
|
}
|
2024-07-10 22:24:28 +02:00
|
|
|
|
2024-07-11 10:02:24 +02:00
|
|
|
Button{
|
|
|
|
id: logginB
|
|
|
|
anchors{
|
|
|
|
verticalCenter: s1.verticalCenter
|
|
|
|
rightMargin: 10
|
|
|
|
right: s1.right
|
|
|
|
}
|
|
|
|
text: qsTr("Loggin")
|
2024-07-10 22:24:28 +02:00
|
|
|
|
2024-07-11 10:02:24 +02:00
|
|
|
onClicked: {
|
|
|
|
var component = Qt.createComponent("LoginScreen.qml")
|
|
|
|
var window = component.createObject(root)
|
|
|
|
window.show()
|
|
|
|
}
|
2024-07-10 22:24:28 +02:00
|
|
|
}
|
2024-07-10 12:40:38 +02:00
|
|
|
}
|
2024-07-09 18:37:01 +02:00
|
|
|
|
2024-07-11 10:02:24 +02:00
|
|
|
Rectangle{
|
|
|
|
id: s2
|
|
|
|
anchors {
|
|
|
|
top: s1.bottom
|
|
|
|
left: parent.left
|
|
|
|
right: parent.right
|
|
|
|
bottom: parent.bottom
|
|
|
|
}
|
|
|
|
color: getColors().dark
|
|
|
|
|
|
|
|
TableView {
|
|
|
|
anchors {
|
|
|
|
fill: s2
|
|
|
|
}
|
|
|
|
columnSpacing: 0
|
|
|
|
rowSpacing: 1
|
|
|
|
clip: true
|
|
|
|
boundsBehavior: Flickable.StopAtBounds
|
|
|
|
|
|
|
|
model: Data {}
|
|
|
|
delegate: Rectangle {
|
|
|
|
id: r
|
|
|
|
anchors{
|
|
|
|
}
|
|
|
|
color: getColors().base
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
implicitHeight: 50
|
|
|
|
border.width: 0
|
|
|
|
|
|
|
|
Text {
|
|
|
|
anchors {
|
|
|
|
horizontalCenter: r.horizontalCenter
|
|
|
|
verticalCenter: r.verticalCenter
|
|
|
|
}
|
|
|
|
text: display
|
|
|
|
color: getColors().text
|
|
|
|
anchors.centerIn: parent
|
|
|
|
}
|
2024-07-10 12:40:38 +02:00
|
|
|
}
|
2024-07-09 18:37:01 +02:00
|
|
|
}
|
2024-07-08 16:08:21 +02:00
|
|
|
}
|
2024-07-11 10:02:24 +02:00
|
|
|
|
|
|
|
|
2024-07-10 15:00:00 +02:00
|
|
|
Button {
|
2024-07-10 16:21:26 +02:00
|
|
|
id: testB
|
2024-07-10 15:00:00 +02:00
|
|
|
anchors {
|
|
|
|
bottom: parent.bottom
|
2024-07-10 16:21:26 +02:00
|
|
|
left: parent.left
|
2024-07-10 15:00:00 +02:00
|
|
|
}
|
2024-07-10 16:21:26 +02:00
|
|
|
text: qsTr("Test Window")
|
2024-07-10 15:00:00 +02:00
|
|
|
|
|
|
|
onClicked: {
|
|
|
|
var component = Qt.createComponent("Test.qml")
|
|
|
|
var window = component.createObject(root)
|
|
|
|
window.show()
|
|
|
|
}
|
|
|
|
}
|
2024-07-10 16:21:26 +02:00
|
|
|
Button {
|
|
|
|
id: loginScreenB
|
|
|
|
anchors {
|
|
|
|
left: testB.right
|
|
|
|
bottom: parent.bottom
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
text: qsTr("Login Screen")
|
|
|
|
onClicked: {
|
|
|
|
var component = Qt.createComponent("LoginScreen.qml")
|
|
|
|
var window = component.createObject(root)
|
|
|
|
window.show()
|
|
|
|
}
|
|
|
|
}
|
2024-07-08 16:08:21 +02:00
|
|
|
}
|