From a265ad7dbb36fb121e8ac7874eb3b45efc416c46 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Fri, 9 Nov 2012 15:58:22 +0100 Subject: [PATCH] remove paste this will need to be provided via a drop action from the graphical system containment implementation --- containmentactions.cpp | 8 -------- containmentactions.h | 5 ----- design/qml_todos.txt | 2 ++ 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/containmentactions.cpp b/containmentactions.cpp index 5be8dec85..bb6c0dc6f 100644 --- a/containmentactions.cpp +++ b/containmentactions.cpp @@ -208,14 +208,6 @@ QString ContainmentActions::eventToString(QEvent *event) return trigger; } -void ContainmentActions::paste(QPointF scenePos, QPoint screenPos) -{ - Containment *c = containment(); - if (c) { - c->d->dropData(screenPos); - } -} - QPoint screenPosFromEvent(QEvent *event) { switch (event->type()) { diff --git a/containmentactions.h b/containmentactions.h index 3e387ae1c..965e06506 100644 --- a/containmentactions.h +++ b/containmentactions.h @@ -213,11 +213,6 @@ class PLASMA_EXPORT ContainmentActions : public QObject */ Containment *containment(); - /** - * pastes the clipboard at a given location - */ - void paste(QPointF scenePos, QPoint screenPos); - private: friend class ContainmentActionsPackage; friend class ContainmentActionsPrivate; diff --git a/design/qml_todos.txt b/design/qml_todos.txt index 23f921a55..638e8eaa4 100644 --- a/design/qml_todos.txt +++ b/design/qml_todos.txt @@ -10,6 +10,8 @@ Functionality Blocks * wallpaper loading * action plugins access * applet geometry save/restore + * move ContainmentPrivate::dropData to be a protected member (slot?) so QML Containment can + provide a drop action * ContainmentActions * add ToolBox as a recognized trigger * only return sets of actions