CAM_SettingsContainer.qml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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:cam_sett_headline CAM Settings Headline
  12. headerText: qsTrId("cam_sett_headline") + transLoad.emptyString //qsTr("Kamera Einst.") + transLoad.emptyString
  13. }
  14. Menu.MenuStatus {}
  15. Item {
  16. clip: true
  17. id: appContainer
  18. // width: parent.width
  19. // height: parent.height
  20. x: 0
  21. y: parent.height / 10.0
  22. width: parent.width
  23. height: parent.height - 2 * y
  24. anchors.centerIn: parent
  25. // ***** Body *****
  26. CAM_Settings {
  27. id: mainQml
  28. anchors.left: parent.left
  29. anchors.top: parent.top
  30. anchors.right: parent.right
  31. anchors.bottom: inputPanel.top
  32. Component.onDestruction: {
  33. Qt.inputMethod.hide();
  34. console.debug("FENSTER ZU !!!");
  35. }
  36. }
  37. InputPanel {
  38. id: inputPanel
  39. z: 99
  40. y: appContainer.height
  41. anchors.left: parent.left
  42. anchors.right: parent.right
  43. states: State {
  44. name: "visible"
  45. when: Qt.inputMethod.visible
  46. PropertyChanges {
  47. target: inputPanel
  48. y: appContainer.height - inputPanel.height
  49. }
  50. }
  51. transitions: Transition {
  52. from: ""
  53. to: "visible"
  54. reversible: true
  55. ParallelAnimation {
  56. NumberAnimation {
  57. properties: "y"
  58. duration: 150
  59. easing.type: Easing.InOutQuad
  60. }
  61. }
  62. }
  63. }
  64. }
  65. }