AbstractButton.qml 595 B

123456789101112131415
  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. T.AbstractButton {
  7. id: control
  8. implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
  9. implicitContentWidth + leftPadding + rightPadding)
  10. implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
  11. implicitContentHeight + topPadding + bottomPadding)
  12. }