[vlc-commits] [Git][videolan/vlc][master] qml: force text labels to use PlainText mode

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Thu Jul 14 10:59:35 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
fe03c25a by Pierre Lamot at 2022-07-14T10:35:02+00:00
qml: force text labels to use PlainText mode

The default mode was preventing double click events from propagating in some cases
(KeyNavigableTableView)

Unless for very specific context we don't need rich/html text formatting

- - - - -


6 changed files:

- modules/gui/qt/widgets/qml/CaptionLabel.qml
- modules/gui/qt/widgets/qml/IconLabel.qml
- modules/gui/qt/widgets/qml/ListLabel.qml
- modules/gui/qt/widgets/qml/MenuCaption.qml
- modules/gui/qt/widgets/qml/MenuLabel.qml
- modules/gui/qt/widgets/qml/SubtitleLabel.qml


Changes:

=====================================
modules/gui/qt/widgets/qml/CaptionLabel.qml
=====================================
@@ -23,4 +23,5 @@ T.Label {
     elide: Text.ElideRight
     font.pixelSize: VLCStyle.fontSize_normal
     color: VLCStyle.colors.caption
+    textFormat: Text.PlainText
 }


=====================================
modules/gui/qt/widgets/qml/IconLabel.qml
=====================================
@@ -27,4 +27,5 @@ T.Label {
         pixelSize: VLCStyle.icon_small
         family: VLCIcons.fontFamily
     }
+    textFormat: Text.PlainText
 }


=====================================
modules/gui/qt/widgets/qml/ListLabel.qml
=====================================
@@ -25,4 +25,5 @@ T.Label {
     font.weight: Font.DemiBold
     color: VLCStyle.colors.text
     verticalAlignment: Text.AlignVCenter
+    textFormat: Text.PlainText
 }


=====================================
modules/gui/qt/widgets/qml/MenuCaption.qml
=====================================
@@ -24,4 +24,5 @@ T.Label {
     font.pixelSize: VLCStyle.fontSize_normal
     color: VLCStyle.colors.menuCaption
     verticalAlignment: Text.AlignVCenter
+    textFormat: Text.PlainText
 }


=====================================
modules/gui/qt/widgets/qml/MenuLabel.qml
=====================================
@@ -25,4 +25,5 @@ T.Label {
     font.weight: Font.DemiBold
     color: VLCStyle.colors.text
     verticalAlignment: Text.AlignVCenter
+    textFormat: Text.PlainText
 }


=====================================
modules/gui/qt/widgets/qml/SubtitleLabel.qml
=====================================
@@ -24,4 +24,5 @@ T.Label {
     font.pixelSize: VLCStyle.fontSize_xxxlarge
     font.weight: Font.Bold
     color: VLCStyle.colors.text
+    textFormat: Text.PlainText
 }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fe03c25a6b05dac77d583ce8ab2f572b598677a3

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/fe03c25a6b05dac77d583ce8ab2f572b598677a3
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list