Page.qml 1.0 KB

1234567891011121314151617181920212223242526
  1. // Copyright (C) 2017 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
  3. // Qt-Security score:significant reason:default
  4. import QtQuick
  5. import QtQuick.Templates as T
  6. import QtQuick.Controls.impl
  7. import QtQuick.Controls.Fusion
  8. import QtQuick.Controls.Fusion.impl
  9. T.Page {
  10. id: control
  11. implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
  12. implicitContentWidth + leftPadding + rightPadding,
  13. implicitHeaderWidth,
  14. implicitFooterWidth)
  15. implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
  16. implicitContentHeight + topPadding + bottomPadding
  17. + (implicitHeaderHeight > 0 ? implicitHeaderHeight + spacing : 0)
  18. + (implicitFooterHeight > 0 ? implicitFooterHeight + spacing : 0))
  19. background: Rectangle {
  20. color: control.palette.window
  21. }
  22. }