Changeset View
Changeset View
Standalone View
Standalone View
org.kde.desktop/ToolTip.qml
Show All 27 Lines | |||||
28 | 28 | | |||
29 | T.ToolTip { | 29 | T.ToolTip { | ||
30 | id: controlRoot | 30 | id: controlRoot | ||
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 ? Math.round((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 | 39 | // Always show the tooltip on top of everything else | ||
40 | z: 999 | 40 | z: 999 | ||
41 | 41 | | |||
42 | implicitWidth: contentItem.implicitWidth + leftPadding + rightPadding | 42 | implicitWidth: contentItem.implicitWidth + leftPadding + rightPadding | ||
43 | implicitHeight: contentItem.implicitHeight + topPadding + bottomPadding | 43 | implicitHeight: contentItem.implicitHeight + topPadding + bottomPadding | ||
44 | 44 | | |||
Show All 36 Lines |