Changeset View
Changeset View
Standalone View
Standalone View
src/qml/LabelWithToolTip.qml
Show All 19 Lines | |||||
20 | import QtGraphicalEffects 1.0 | 20 | import QtGraphicalEffects 1.0 | ||
21 | import QtQuick.Window 2.2 | 21 | import QtQuick.Window 2.2 | ||
22 | 22 | | |||
23 | Label { | 23 | Label { | ||
24 | id: theLabel | 24 | id: theLabel | ||
25 | 25 | | |||
26 | horizontalAlignment: Text.AlignLeft | 26 | horizontalAlignment: Text.AlignLeft | ||
27 | 27 | | |||
28 | elide: Text.ElideRight | ||||
29 | | ||||
28 | Loader { | 30 | Loader { | ||
29 | anchors.fill: parent | 31 | anchors.fill: parent | ||
30 | 32 | | |||
31 | active: theLabel.truncated | 33 | active: theLabel.truncated | ||
32 | visible: theLabel.truncated | 34 | visible: theLabel.truncated | ||
33 | 35 | | |||
34 | sourceComponent: MouseArea { | 36 | sourceComponent: MouseArea { | ||
35 | id: hoverArea | 37 | id: hoverArea | ||
Show All 39 Lines |