diff options
Diffstat (limited to 'src/imports/controls/material/Pane.qml')
-rw-r--r-- | src/imports/controls/material/Pane.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/imports/controls/material/Pane.qml b/src/imports/controls/material/Pane.qml index 43f9e34a..434c676c 100644 --- a/src/imports/controls/material/Pane.qml +++ b/src/imports/controls/material/Pane.qml @@ -37,6 +37,7 @@ import QtQuick 2.6 import QtQuick.Templates 2.0 as T import QtQuick.Controls.Material 2.0 +import QtQuick.Controls.Material.impl 2.0 T.Pane { id: control @@ -56,6 +57,11 @@ T.Pane { //! [background] background: Rectangle { color: control.Material.backgroundColor + + layer.enabled: control.enabled && control.Material.elevation > 0 + layer.effect: ElevationEffect { + elevation: control.Material.elevation + } } //! [background] } |