Debian Codegraph @

notify/src/NotificationBase.qml

raw
1 /* Copyright (C) 2016 - 2017 Dan Chapman <[email protected]>
2
3 This file is part of the Dekko Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing,
12 software distributed under the License is distributed on an
13 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
14 either express or implied. See the License for the specific
15 language governing permissions and limitations under the License.
16 */
17 import QtQuick 2.4
18 import Lomiri.Components 1.3
19
20 Item {
21
22 anchors.fill: parent
23
24 property string title
25 property string body
26 property int position
27 property int displayTime
28 property Action action
29 property string iconName
30 property color iconColor
31
32 readonly property bool dockedLeft: position === Item.Left
33 readonly property bool dockedRight: position === Item.Right
34 readonly property bool dockedCenter: position === Item.Center
35 readonly property bool hasIcon: iconName
36
37 signal closed()
38 }