1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- import QtQuick
- import QtQuick.Controls.impl
- import QtQuick.Templates as T
- T.Page {
- id: control
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding,
- implicitHeaderWidth,
- implicitFooterWidth)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding
- + (implicitHeaderHeight > 0 ? implicitHeaderHeight + spacing : 0)
- + (implicitFooterHeight > 0 ? implicitFooterHeight + spacing : 0))
- background: Rectangle {
- color: control.palette.window
- }
- }
|