|
|
|
|
@ -12,6 +12,7 @@ import org.kde.plasma.core 2.0 as PlasmaCore |
|
|
|
|
import org.kde.plasma.components 2.0 as PlasmaComponents // PC3 Tabbar only has top and bottom tab positions, not left and right |
|
|
|
|
|
|
|
|
|
import org.kde.activities 0.1 as Activities |
|
|
|
|
import org.kde.kquickcontrolsaddons 2.1 // For KCMShell |
|
|
|
|
|
|
|
|
|
Item { |
|
|
|
|
Layout.minimumWidth: tabBar.implicitWidth |
|
|
|
|
@ -19,6 +20,10 @@ Item { |
|
|
|
|
|
|
|
|
|
Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation |
|
|
|
|
|
|
|
|
|
function action_activitieskcm() { |
|
|
|
|
KCMShell.openSystemSettings("kcm_activities"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
PlasmaComponents.TabBar { |
|
|
|
|
id: tabBar |
|
|
|
|
|
|
|
|
|
@ -85,5 +90,9 @@ Item { |
|
|
|
|
|
|
|
|
|
Component.onCompleted: { |
|
|
|
|
Plasmoid.removeAction("configure"); |
|
|
|
|
|
|
|
|
|
if (KCMShell.authorize("kcm_activities.desktop").length > 0) { |
|
|
|
|
Plasmoid.setAction("activitieskcm", i18nc("@action:inmenu", "&Configure Activities…"), "configure"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|