Index: sources/gui/qml/components/ModalDialog.qml =================================================================== diff -u -r4a6abe765f03feae8100ec660aa04aa218d4dfa3 -rf148379112a69d1c52027f2667e95f3f96d948ad --- sources/gui/qml/components/ModalDialog.qml (.../ModalDialog.qml) (revision 4a6abe765f03feae8100ec660aa04aa218d4dfa3) +++ sources/gui/qml/components/ModalDialog.qml (.../ModalDialog.qml) (revision f148379112a69d1c52027f2667e95f3f96d948ad) @@ -14,7 +14,7 @@ // Qt import QtQuick 2.12 -import QtQuick.Controls 2.12 +import QtQuick.Controls 2.12 // Dialog // Project // Qml imports @@ -24,11 +24,13 @@ * \brief The parent item for modal dialogs */ Dialog { id : _root - property bool autoHide : false - property int autoHideDuration : 1000 + property bool autoHide : false + property int autoHideDuration : 1000 + property alias notificationText : _notification.text - width : Variables.poweroffWidth - height : Variables.poweroffHeight + width : Variables.dialogWidth + height : Variables.dialogHeight + visible : false anchors.centerIn: parent @@ -52,7 +54,6 @@ onVisibleChanged: { if (autoHide && visible) { _autoHideAnimation.start() - console.debug("_autoHideAnimation started") } } @@ -63,8 +64,9 @@ duration: autoHideDuration //easing.type: Easing.InOutQuad onFinished: { - console.debug("_autoHideAnimation finished") _root.visible = false } } + + NotificationBar { id: _notification } }