[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/applets/tasks
From: Sebastian Sauer <mail () dipe ! org>
Date: 2008-01-31 22:36:56
Message-ID: 1201819016.946713.29454.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 769243 by sebsauer:
Let the task-applet return the context-actions of the parent containment. Now \
right-click on the task does also allow to configure the panel :)
M +6 -0 tasks.cpp
M +2 -0 tasks.h
--- trunk/KDE/kdebase/workspace/plasma/applets/tasks/tasks.cpp #769242:769243
@@ -32,6 +32,7 @@
#include <QTimeLine>
// Plasma
+#include <plasma/containment.h>
#include <plasma/layouts/boxlayout.h>
#include <plasma/layouts/layoutanimator.h>
@@ -108,6 +109,11 @@
m_rootTaskGroup->layout()->setAnimator(animator);
}
+QList<QAction*> Tasks::contextActions()
+{
+ return containment() ? containment()->contextActions() : QList<QAction*>();
+}
+
void Tasks::registerStartingTasks()
{
}
--- trunk/KDE/kdebase/workspace/plasma/applets/tasks/tasks.h #769242:769243
@@ -56,6 +56,8 @@
void init();
+ QList<QAction*> contextActions();
+
/**
* TODO: Sets the strategy used to automatically group tasks
* together.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic