SymbolModeKey.qml 790 B

12345678910111213141516171819202122232425262728
  1. // Copyright (C) 2016 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
  3. import QtQuick
  4. import QtQuick.VirtualKeyboard
  5. /*!
  6. \qmltype SymbolModeKey
  7. \inqmlmodule QtQuick.VirtualKeyboard.Components
  8. \ingroup qmlclass
  9. \ingroup qtvirtualkeyboard-components-qml
  10. \ingroup qtvirtualkeyboard-key-types
  11. \inherits Key
  12. \brief Symbol mode key for keyboard layouts.
  13. This key toggles between the symbol mode layout and the main layout.
  14. */
  15. Key {
  16. keyType: QtVirtualKeyboard.KeyType.SymbolModeKey
  17. key: Qt.Key_Context1
  18. displayText: "&123"
  19. functionKey: true
  20. highlighted: true
  21. onClicked: keyboard.symbolMode = !keyboard.symbolMode
  22. keyPanelDelegate: keyboard.style ? keyboard.style.symbolKeyPanel : undefined
  23. }