Changeset View
Changeset View
Standalone View
Standalone View
org.kde.desktop/ToolTip.qml
Show All 30 Lines | 29 | T.ToolTip { | |||
---|---|---|---|---|---|
31 | 31 | | |||
32 | @DISABLE_UNDER_QQC2_2_4@ palette: Kirigami.Theme.palette | 32 | @DISABLE_UNDER_QQC2_2_4@ palette: Kirigami.Theme.palette | ||
33 | Kirigami.Theme.colorSet: Kirigami.Theme.Tooltip | 33 | Kirigami.Theme.colorSet: Kirigami.Theme.Tooltip | ||
34 | Kirigami.Theme.inherit: false | 34 | Kirigami.Theme.inherit: false | ||
35 | 35 | | |||
36 | x: parent ? (parent.width - implicitWidth) / 2 : 0 | 36 | x: parent ? (parent.width - implicitWidth) / 2 : 0 | ||
37 | y: -implicitHeight - 3 | 37 | y: -implicitHeight - 3 | ||
38 | 38 | | |||
39 | // Always show the tooltip on top of everything else | ||||
40 | z: 999 | ||||
41 | | ||||
39 | implicitWidth: contentItem.implicitWidth + leftPadding + rightPadding | 42 | implicitWidth: contentItem.implicitWidth + leftPadding + rightPadding | ||
40 | implicitHeight: contentItem.implicitHeight + topPadding + bottomPadding | 43 | implicitHeight: contentItem.implicitHeight + topPadding + bottomPadding | ||
41 | 44 | | |||
42 | margins: 6 | 45 | margins: 6 | ||
43 | padding: 6 | 46 | padding: 6 | ||
44 | 47 | | |||
45 | visible: parent && (Kirigami.Settings.tabletMode ? parent.pressed : (parent.hasOwnProperty("hovered") ? parent.hovered : parent.containsMouse)) | 48 | visible: parent && (Kirigami.Settings.tabletMode ? parent.pressed : (parent.hasOwnProperty("hovered") ? parent.hovered : parent.containsMouse)) | ||
46 | delay: Kirigami.Settings.tabletMode ? Qt.styleHints.mousePressAndHoldInterval : 1000 | 49 | delay: Kirigami.Settings.tabletMode ? Qt.styleHints.mousePressAndHoldInterval : 1000 | ||
Show All 29 Lines |