Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/items/AbstractItem.qml
Show All 40 Lines | 25 | PlasmaCore.ToolTipArea { | |||
---|---|---|---|---|---|
41 | signal clicked(var mouse) | 41 | signal clicked(var mouse) | ||
42 | signal pressed(var mouse) | 42 | signal pressed(var mouse) | ||
43 | signal wheel(var wheel) | 43 | signal wheel(var wheel) | ||
44 | signal contextMenu(var mouse) | 44 | signal contextMenu(var mouse) | ||
45 | 45 | | |||
46 | /* subclasses need to assign to this tooltip properties | 46 | /* subclasses need to assign to this tooltip properties | ||
47 | mainText: | 47 | mainText: | ||
48 | subText: | 48 | subText: | ||
49 | icon: | | |||
50 | */ | 49 | */ | ||
51 | 50 | | |||
52 | location: { | 51 | location: { | ||
53 | if (inHiddenLayout) { | 52 | if (inHiddenLayout) { | ||
54 | if (LayoutMirroring.enabled && plasmoid.location !== PlasmaCore.Types.RightEdge) { | 53 | if (LayoutMirroring.enabled && plasmoid.location !== PlasmaCore.Types.RightEdge) { | ||
55 | return PlasmaCore.Types.LeftEdge; | 54 | return PlasmaCore.Types.LeftEdge; | ||
56 | } else if (plasmoid.location !== PlasmaCore.Types.LeftEdge) { | 55 | } else if (plasmoid.location !== PlasmaCore.Types.LeftEdge) { | ||
57 | return PlasmaCore.Types.RightEdge; | 56 | return PlasmaCore.Types.RightEdge; | ||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |