File: Message.qml

package info (click to toggle)
qt6-location 6.9.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,480 kB
  • sloc: cpp: 49,088; xml: 2,583; javascript: 189; makefile: 23
file content (21 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

import QtQuick

MessageForm {
    property string title
    property string message
    property variant backPage

    signal closeForm(variant backPage)

    button.onClicked: {
        closeForm(backPage)
    }

    Component.onCompleted: {
        messageText.text = message
        messageTitle.text = title
    }
}