Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
c56a7d30 by Fatih Uzunoglu at 2023-02-05T05:57:56+00:00
qml: use template ToolTip in ToolTipExt
- - - - -
1 changed file:
- modules/gui/qt/widgets/qml/ToolTipExt.qml
Changes:
=====================================
modules/gui/qt/widgets/qml/ToolTipExt.qml
=====================================
@@ -17,18 +17,28 @@
*****************************************************************************/
import QtQuick 2.11
-import QtQuick.Controls 2.4
+import QtQuick.Templates 2.4 as T
import "qrc:///style/"
-ToolTip {
+T.ToolTip {
id: control
+ x: 0
+ y: -implicitHeight - VLCStyle.margin_xxxsmall
+
+ implicitWidth: Math.max(background ? background.implicitWidth : 0,
+ contentItem.implicitWidth + leftPadding +
rightPadding)
+ implicitHeight: Math.max(background ? background.implicitHeight : 0,
+ contentItem.implicitHeight + topPadding +
bottomPadding)
+
margins: VLCStyle.margin_xsmall
padding: VLCStyle.margin_xsmall
font.pixelSize: VLCStyle.fontSize_normal
+ closePolicy: T.Popup.CloseOnEscape | T.Popup.CloseOnPressOutsideParent |
T.Popup.CloseOnReleaseOutsideParent
+
property VLCColors colors: VLCStyle.colors
contentItem: Text {
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/c56a7d304c69c63b4daae4a69393e4a77ae4f86c
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/c56a7d304c69c63b4daae4a69393e4a77ae4f86c
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits