mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 14:55:03 -06:00
Merge pull request #16268 from Ultimaker/CURA-10770_Developer_about_dialog
Cura about dialog when shaked gives extra info
This commit is contained in:
commit
112171937e
4 changed files with 113 additions and 2 deletions
|
@ -1,10 +1,10 @@
|
|||
// Copyright (c) 2022 UltiMaker
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.2
|
||||
import QtQuick 2.4
|
||||
import QtQuick.Controls 2.9
|
||||
|
||||
import UM 1.5 as UM
|
||||
import UM 1.6 as UM
|
||||
import Cura 1.5 as Cura
|
||||
|
||||
UM.Dialog
|
||||
|
@ -21,6 +21,14 @@ UM.Dialog
|
|||
|
||||
backgroundColor: UM.Theme.getColor("main_background")
|
||||
|
||||
property real dialogX: base.x
|
||||
property real dialogY: base.y
|
||||
property int shakeDetected: shakeDetector.shakeIsdetected
|
||||
property UM.ShakeDetector shakeDetector: UM.ShakeDetector
|
||||
{
|
||||
position: Qt.point(base.x, base.y)
|
||||
}
|
||||
|
||||
Rectangle
|
||||
{
|
||||
id: header
|
||||
|
@ -181,6 +189,23 @@ UM.Dialog
|
|||
}
|
||||
}
|
||||
|
||||
AboutDialogVersionsList{
|
||||
id: projectBuildInfoList
|
||||
|
||||
}
|
||||
|
||||
onShakeDetectedChanged:
|
||||
{
|
||||
projectsList.visible = !projectsList.visible;
|
||||
projectBuildInfoList.visible = !projectBuildInfoList.visible;
|
||||
}
|
||||
|
||||
onVisibleChanged:
|
||||
{
|
||||
projectsList.visible = true;
|
||||
projectBuildInfoList.visible = false;
|
||||
}
|
||||
|
||||
rightButtons: Cura.TertiaryButton
|
||||
{
|
||||
//: Close about dialog button
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue