Changeset View
Changeset View
Standalone View
Standalone View
source/qml/components/inlinemessage/Message2.qml
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * Copyright 2018 Fabian Riethmayer | ||||
3 | * | ||||
4 | * This program is free software; you can redistribute it and/or modify | ||||
5 | * it under the terms of the GNU Library General Public License as | ||||
6 | * published by the Free Software Foundation; either version 2, or | ||||
7 | * (at your option) any later version. | ||||
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 Library General Public License for more details | ||||
13 | * | ||||
14 | * You should have received a copy of the GNU Library General Public | ||||
15 | * License along with this program; if not, write to the | ||||
16 | * Free Software Foundation, Inc., | ||||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
18 | */ | ||||
19 | | ||||
20 | import QtQuick 2.7 | ||||
21 | import QtQuick.Controls 2.2 | ||||
22 | import QtQuick.Layouts 1.2 | ||||
23 | import org.kde.kirigami 2.4 as Kirigami | ||||
24 | import "../../lib" as HIG | ||||
25 | | ||||
26 | Rectangle { | ||||
27 | id: root | ||||
28 | width: 600 | ||||
29 | height: 160 | ||||
30 | | ||||
31 | ColumnLayout { | ||||
32 | x: Kirigami.Units.gridUnit * 2 | ||||
33 | y: Kirigami.Units.gridUnit * 2 | ||||
34 | width: parent.width - 2 * Kirigami.Units.gridUnit * 2 | ||||
35 | Kirigami.InlineMessage { | ||||
36 | Layout.fillWidth: true | ||||
37 | visible: true | ||||
38 | text: "Remember password?" | ||||
39 | actions: [ | ||||
40 | Kirigami.Action { | ||||
41 | text: "Remember" | ||||
42 | icon.name: "dialog-ok-apply" | ||||
43 | }, | ||||
44 | Kirigami.Action { | ||||
45 | text: "Do not remember" | ||||
46 | icon.name: "dialog-cancel" | ||||
47 | } | ||||
48 | ] | ||||
49 | } | ||||
50 | } | ||||
51 | | ||||
52 | HIG.Raster { | ||||
53 | z: 1 | ||||
54 | } | ||||
55 | } |