-
Notifications
You must be signed in to change notification settings - Fork 2
/
ShadowedPopup.qml
53 lines (48 loc) · 1.19 KB
/
ShadowedPopup.qml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import QtQuick 2.0
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.0
Popup {
id: addAccountPopup
width: 375
height: 200
background: Rectangle {
layer.enabled: true
layer.effect: DropShadow {
color: "#77000000"
transparentBorder: true
radius: 50
samples: 1 + radius * 2
verticalOffset: 10
}
}
modal: true
dim: false
z: 3
default property alias contents: clientArea.data
property alias cancelButton: cancelButton
property alias acceptButton: acceptButton
property alias showButtons: buttonRow.visible
ColumnLayout {
anchors.fill: parent
Item {
id: clientArea
Layout.fillWidth: true
Layout.fillHeight: true
}
Row {
id: buttonRow
anchors.right: parent.right
anchors.bottom: parent.bottom
spacing: 10
Button {
id: cancelButton
text: qsTr("Cancel")
}
Button {
id: acceptButton
text: qsTr("Accept")
}
}
}
}