Debian Codegraph @

src/app/qml/dialogs/NotifyDialog.qml

raw
1 /*
2 * Copyright (C) 2013 Canonical Ltd
3 * Copyright (C) 2021 UBports Foundation
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * Authored by: Arto Jalkanen <[email protected]>
18 */
19 import QtQuick 2.4
20 import Lomiri.Components 1.3
21 import Lomiri.Components.Popups 1.3
22
23 Dialog {
24 id: root
25
26 signal closed()
27
28 Button {
29 color: theme.palette.normal.focus
30 text: i18n.tr("OK")
31 onClicked: {
32 closed()
33 PopupUtils.close(root)
34 }
35 }
36 }