PagePlaceholder.qml 833 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import QtQuick 2.15
  2. import DMusic 1.0
  3. Item {
  4. id: root
  5. width: Math.max(_icon.width, _text.width, _text2.width)
  6. height: childrenRect.height
  7. property string text: qsTr("There must be page")
  8. property string text2: qsTr("but there isn't")
  9. property url icon
  10. Icon {
  11. id: _icon
  12. width: 64
  13. height: 64
  14. anchors.horizontalCenter: parent.horizontalCenter
  15. src: root.icon
  16. color: Style.window.text.color
  17. }
  18. DText {
  19. id: _text
  20. anchors.horizontalCenter: parent.horizontalCenter
  21. anchors.top: _icon.bottom
  22. anchors.topMargin: 24
  23. text: root.text
  24. font.pointSize: 13.5
  25. }
  26. DText {
  27. id: _text2
  28. anchors.horizontalCenter: parent.horizontalCenter
  29. anchors.top: _text.bottom
  30. anchors.topMargin: 13
  31. text: root.text2
  32. font.pointSize: 8.25
  33. color: style.darkColor
  34. }
  35. }