1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- import QtQuick
- import QtQuick.Controls
- import QtQuick.Templates as T
- import QtQuick.NativeStyle as NativeStyle
- T.Frame {
- id: control
- readonly property bool __nativeBackground: background instanceof NativeStyle.StyleItem
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
- leftPadding: __nativeBackground ? background.contentPadding.left : 12
- rightPadding: __nativeBackground ? background.contentPadding.right : 12
- topPadding: __nativeBackground ? background.contentPadding.top : 12
- bottomPadding: __nativeBackground ? background.contentPadding.bottom : 12
- background: NativeStyle.Frame {
- control: control
- contentWidth: control.contentWidth
- contentHeight: control.contentHeight
- }
- }
|