Ver Fonte

Hide subtitle when not defined

Denis V. Dedkov há 2 meses atrás
pai
commit
d27fe9f2ec
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      SubtitledItemDelegate.qml

+ 1 - 0
SubtitledItemDelegate.qml

@@ -19,6 +19,7 @@ ItemDelegate {
             font.pixelSize: titleLabel.font.pixelSize - 2
             text: root.subtitle
             opacity: 0.8
+            visible: Boolean(text)
         }
     }
 }