PWD_Container.qml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import QtQuick 2.0
  2. import QtQuick.FreeVirtualKeyboard 1.0
  3. import QtQuick.Window 2.0
  4. import "qrc:/Globals"
  5. import "Menu" as Menu
  6. Rectangle {
  7. id: root
  8. implicitWidth: mainQml.implicitWidth
  9. implicitHeight: mainQml.implicitHeight
  10. Menu.MenuHeader {
  11. //: ID:login_headline Login Password Headline
  12. headerText: qsTrId("login_headline") + transLoad.emptyString //qsTr("Passwort") + transLoad.emptyString
  13. }
  14. Menu.MenuStatus {}
  15. Item {
  16. clip: true
  17. id: appContainer
  18. x: 0
  19. y: parent.height / 10.0
  20. width: parent.width
  21. height: parent.height - 2 * y
  22. anchors.centerIn: parent
  23. // ***** Body *****
  24. PWD {
  25. id: mainQml
  26. anchors.left: parent.left
  27. anchors.top: parent.top
  28. anchors.right: parent.right
  29. anchors.bottom: inputPanel.top
  30. Component.onDestruction: {
  31. Qt.inputMethod.hide();
  32. console.debug("FENSTER ZU !!!");
  33. }
  34. }
  35. InputPanel {
  36. id: inputPanel
  37. z: 99
  38. y: appContainer.height
  39. anchors.left: parent.left
  40. anchors.right: parent.right
  41. states: State {
  42. name: "visible"
  43. when: Qt.inputMethod.visible
  44. PropertyChanges {
  45. target: inputPanel
  46. y: appContainer.height - inputPanel.height
  47. }
  48. }
  49. transitions: Transition {
  50. from: ""
  51. to: "visible"
  52. reversible: true
  53. ParallelAnimation {
  54. NumberAnimation {
  55. properties: "y"
  56. duration: 150
  57. easing.type: Easing.InOutQuad
  58. }
  59. }
  60. }
  61. }
  62. }
  63. }