KTextInput.qml 600 B

123456789101112131415161718192021222324252627
  1. import QtQuick 1.1
  2. import "../js/UIConstants.js" as Ui
  3. Item {
  4. id: root
  5. property alias text: textinput.text
  6. width:parent.width
  7. height: 60
  8. Rectangle{
  9. width: parent.width
  10. height: parent.height
  11. anchors.centerIn: parent
  12. radius: height/2
  13. color: "transparent"
  14. border.color:"#8f00FF"
  15. TextInput{
  16. id: textinput
  17. font.pointSize: Ui.FONT_DEFAULT
  18. width:parent.width - 2*parent.radius
  19. anchors.centerIn: parent
  20. Keys.onReturnPressed: closeSoftwareInputPanel()
  21. }
  22. }
  23. }