AreaPlaceholder.qml 413 B

123456789101112131415161718192021
  1. import QtQuick 2.0
  2. Rectangle {
  3. id: root
  4. property bool active: false
  5. property alias text: phText.text
  6. anchors.fill: parent
  7. opacity: active ? 1.0 : 0.0
  8. visible: opacity > 0
  9. Behavior on opacity {
  10. NumberAnimation {
  11. duration: 200
  12. }
  13. }
  14. Text {
  15. id: phText
  16. anchors.centerIn: parent
  17. color: "#bbbbbb"
  18. font.pointSize: 14
  19. }
  20. }