From 2880333aab682153536356e0aedd194d1d2e6f61 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 28 Nov 2018 13:02:38 +0100 Subject: [PATCH] default values for tooltips same policy as the tooltips in desktop style --- src/declarativeimports/plasmacomponents3/ToolTip.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/declarativeimports/plasmacomponents3/ToolTip.qml b/src/declarativeimports/plasmacomponents3/ToolTip.qml index 656a108ed..edfa2551f 100644 --- a/src/declarativeimports/plasmacomponents3/ToolTip.qml +++ b/src/declarativeimports/plasmacomponents3/ToolTip.qml @@ -21,6 +21,7 @@ import QtQuick 2.6 import QtQuick.Templates @QQC2_VERSION@ as T import org.kde.plasma.core 2.0 as PlasmaCore +import org.kde.kirigami 2.5 as Kirigami T.ToolTip { id: control @@ -28,6 +29,10 @@ T.ToolTip { x: parent ? (parent.width - implicitWidth) / 2 : 0 y: -implicitHeight - 3 + visible: Kirigami.Settings.tabletMode ? parent.pressed : parent.hovered + delay: Kirigami.Settings.tabletMode ? Qt.styleHints.mousePressAndHoldInterval : 1000 + timeout: 5000 + implicitWidth: contentItem.implicitWidth + leftPadding + rightPadding implicitHeight: contentItem.implicitHeight + topPadding + bottomPadding