Changeset View
Changeset View
Standalone View
Standalone View
src/LabelWithToolTip.qml
Show All 20 Lines | |||||
21 | import QtQuick.Controls 1.4 | 21 | import QtQuick.Controls 1.4 | ||
22 | import QtQuick.Controls 2.0 as Controls2 | 22 | import QtQuick.Controls 2.0 as Controls2 | ||
23 | import QtGraphicalEffects 1.0 | 23 | import QtGraphicalEffects 1.0 | ||
24 | import QtQuick.Window 2.2 | 24 | import QtQuick.Window 2.2 | ||
25 | 25 | | |||
26 | Label { | 26 | Label { | ||
27 | id: theLabel | 27 | id: theLabel | ||
28 | 28 | | |||
29 | horizontalAlignment: Text.AlignLeft | ||||
29 | renderType: Text.NativeRendering | 30 | renderType: Text.NativeRendering | ||
30 | 31 | | |||
31 | Loader { | 32 | Loader { | ||
32 | anchors.fill: parent | 33 | anchors.fill: parent | ||
33 | 34 | | |||
34 | active: theLabel.truncated | 35 | active: theLabel.truncated | ||
35 | visible: theLabel.truncated | 36 | visible: theLabel.truncated | ||
36 | 37 | | |||
Show All 40 Lines |