1
0

GODT-1167 GODT-1179 make run-qml-preview

This commit is contained in:
Alexander Bilyak
2021-05-28 12:12:57 +02:00
committed by Jakub
parent ffb18adfd0
commit 2b1daa60bb
9 changed files with 674 additions and 39 deletions

View File

@ -0,0 +1,56 @@
// Copyright (c) 2021 Proton Technologies AG
//
// This file is part of ProtonMail Bridge.
//
// ProtonMail Bridge is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// ProtonMail Bridge is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with ProtonMail Bridge. If not, see <https://www.gnu.org/licenses/>.
import QtQuick 2.13
import QtQuick.Window 2.13
import QtQuick.Controls 2.13
Window {
id: testroot
width : 250
height : 600
flags : Qt.Window | Qt.Dialog | Qt.FramelessWindowHint
visible : true
title : "GUI test Window"
color : "#10101010"
Column {
anchors.horizontalCenter: parent.horizontalCenter
spacing : 5
Button {
text: "Show window"
onClicked: {
bridge._mainWindow.visible = true
}
}
Button {
text: "Hide window"
onClicked: {
bridge._mainWindow.visible = false
}
}
}
Component.onCompleted : {
testroot.x= 10
testroot.y= 100
bridge._mainWindow.visible = true
}
Bridge {id:bridge}
}