Page.qml 975 B

123456789101112131415161718192021222324
  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.Controls.impl
  6. import QtQuick.Templates as T
  7. T.Page {
  8. id: control
  9. implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
  10. implicitContentWidth + leftPadding + rightPadding,
  11. implicitHeaderWidth,
  12. implicitFooterWidth)
  13. implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
  14. implicitContentHeight + topPadding + bottomPadding
  15. + (implicitHeaderHeight > 0 ? implicitHeaderHeight + spacing : 0)
  16. + (implicitFooterHeight > 0 ? implicitFooterHeight + spacing : 0))
  17. background: Rectangle {
  18. color: control.palette.window
  19. }
  20. }