Explorar o código

Hide subtitle when not defined

Denis V. Dedkov hai 2 meses
pai
achega
d27fe9f2ec
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)
         }
     }
 }