ToolBar.qml 878 B

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.Controls.impl
  6. import QtQuick.Templates as T
  7. T.ToolBar {
  8. id: control
  9. implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
  10. implicitContentWidth + leftPadding + rightPadding)
  11. implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
  12. implicitContentHeight + topPadding + bottomPadding)
  13. topPadding: SafeArea.margins.top
  14. leftPadding: SafeArea.margins.left
  15. rightPadding: SafeArea.margins.right
  16. bottomPadding: SafeArea.margins.bottom
  17. background: Rectangle {
  18. implicitHeight: 40
  19. color: control.palette.button
  20. }
  21. }