Browse Source

Hide subtitle when not defined

Denis V. Dedkov 2 tháng trước cách đây
mục cha
commit
d27fe9f2ec
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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)
         }
     }
 }