MainView.qml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import QtQuick 1.1
  2. import com.nokia.meego 1.0
  3. Page {
  4. id: page
  5. orientationLock: main.appOrientation
  6. /*------------------------------------------*/
  7. /* фишка с неактивным приложением */
  8. onStatusChanged: {
  9. console.log("QML: MainView: status:" + status)
  10. }
  11. /*------------------------------------------*/
  12. Rectangle {
  13. id: background
  14. anchors.fill: parent
  15. color: "black"
  16. Loader {
  17. id: mainItem
  18. anchors.fill: parent
  19. source: main.loadPage
  20. onLoaded: {
  21. main.mainViewItem = item
  22. mainItem.item.state = "visible"
  23. }
  24. }
  25. }
  26. /*Rectangle {
  27. id: curtainWhenItNotActive
  28. z: 1000
  29. anchors.fill: parent
  30. color: "black"
  31. opacity: 0.85
  32. //visible: page.status == PageStatus.Active ? false : true
  33. Text {
  34. anchors.centerIn: parent
  35. font.bold: true
  36. font.pixelSize: 58
  37. color: "yellow"
  38. text: "MeegIM"
  39. }
  40. }*/
  41. }