Changeset View
Changeset View
Standalone View
Standalone View
applets/activitybar/contents/ui/main.qml
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 53 | delegate: PlasmaComponents.TabButton { | |||
---|---|---|---|---|---|
57 | onClicked: { | 57 | onClicked: { | ||
58 | activityModel.setCurrentActivity(model.id, function() {}); | 58 | activityModel.setCurrentActivity(model.id, function() {}); | ||
59 | } | 59 | } | ||
60 | Component.onCompleted: { | 60 | Component.onCompleted: { | ||
61 | if(model.current) { | 61 | if(model.current) { | ||
62 | tabBar.currentTab = tab; | 62 | tabBar.currentTab = tab; | ||
63 | } | 63 | } | ||
64 | } | 64 | } | ||
65 | onCheckedChanged: { | 65 | function onCheckedChanged() { | ||
66 | if(model.current) { | 66 | if(model.current) { | ||
67 | tabBar.currentTab = tab; | 67 | tabBar.currentTab = tab; | ||
68 | } | 68 | } | ||
69 | } | 69 | } | ||
70 | } | 70 | } | ||
71 | } | 71 | } | ||
72 | } | 72 | } | ||
73 | 73 | | |||
74 | Component.onCompleted: { | 74 | Component.onCompleted: { | ||
75 | plasmoid.removeAction("configure"); | 75 | plasmoid.removeAction("configure"); | ||
76 | } | 76 | } | ||
77 | } | 77 | } |