Changeset View
Changeset View
Standalone View
Standalone View
kstars/kstarslite/qml/modules/helpers/TopMenuButton.qml
Show All 26 Lines | 16 | AbstractButton { | |||
---|---|---|---|---|---|
27 | onClicked: { | 27 | onClicked: { | ||
28 | toggled = !toggled | 28 | toggled = !toggled | ||
29 | } | 29 | } | ||
30 | 30 | | |||
31 | onToggledChanged: { | 31 | onToggledChanged: { | ||
32 | if(isLoaded) { //Disable while loading | 32 | if(isLoaded) { //Disable while loading | ||
33 | if(toggled) { | 33 | if(toggled) { | ||
34 | if(titlePlural) { | 34 | if(titlePlural) { | ||
35 | notification.showNotification(xi18n("%1 are toggled on", title)) | 35 | skyMapLite.notification.showNotification(xi18n("%1 are toggled on", title)) | ||
36 | } else { | 36 | } else { | ||
37 | notification.showNotification(xi18n("%1 is toggled on", title)) | 37 | skyMapLite.notification.showNotification(xi18n("%1 is toggled on", title)) | ||
38 | } | 38 | } | ||
39 | } else { | 39 | } else { | ||
40 | if(titlePlural) { | 40 | if(titlePlural) { | ||
41 | notification.showNotification(xi18n("%1 are toggled off", title)) | 41 | skyMapLite.notification.showNotification(xi18n("%1 are toggled off", title)) | ||
42 | } else { | 42 | } else { | ||
43 | notification.showNotification(xi18n("%1 is toggled off", title)) | 43 | skyMapLite.notification.showNotification(xi18n("%1 is toggled off", title)) | ||
44 | } | 44 | } | ||
45 | } | 45 | } | ||
46 | } | 46 | } | ||
47 | } | 47 | } | ||
48 | 48 | | |||
49 | DropShadow { | 49 | DropShadow { | ||
50 | anchors.fill: iconRect | 50 | anchors.fill: iconRect | ||
51 | radius: 8.0 | 51 | radius: 8.0 | ||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |