summaryrefslogtreecommitdiffstats
path: root/tools/qqem/qml/ClearNodeViewDialog.qml
blob: 20520ec4a452a448d235a3fa96345d4b991382cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick
import QtQuick.Controls
import QtQuick.Dialogs

CustomDialog {
    id: root

    title: qsTr("Clear Node View")
    width: 320
    height: 200
    modal: true
    focus: true
    standardButtons: Dialog.Yes | Dialog.No
    closePolicy: Popup.NoAutoClose

    Text {
        text: "Are you sure you want to delete all nodes?"
        font.pixelSize: 14
        color: mainView.foregroundColor2
    }

    onAccepted: {
        effectManager.cleanupNodeView(true);
    }
}