12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- import QtQuick
- import QtQuick.Templates as T
- import QtQuick.Controls.Material
- import QtQuick.Controls.Material.impl
- T.Pane {
- id: control
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
- padding: 12
- background: Rectangle {
- color: control.Material.backgroundColor
- radius: control.Material.elevation > 0 ? 2 : 0
- layer.enabled: control.enabled && control.Material.elevation > 0
- layer.effect: ElevationEffect {
- elevation: control.Material.elevation
- }
- }
- }
|