SelectionRectangle.qml 984 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright (C) 2021 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.SelectionRectangle {
  10. id: control
  11. topLeftHandle: Item {
  12. width: 20
  13. height: 20
  14. visible: SelectionRectangle.control.active
  15. // This item is deliberately empty. Selection handles don't feel at home
  16. // for this style. But we provide an invisible handle that the user can
  17. // drag on.
  18. }
  19. bottomRightHandle: Item {
  20. width: 20
  21. height: 20
  22. visible: SelectionRectangle.control.active
  23. // This item is deliberately empty. Selection handles don't feel at home
  24. // for this style. But we provide an invisible handle that the user can
  25. // drag on.
  26. }
  27. }