[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kde-workspace/plasma/sreich/tasks-qml] plasma/desktop/applets/tasks: add close action method
From: Shaun Reich <shaun.reich () kdemail ! net>
Date: 2012-03-24 20:37:00
Message-ID: 20120324203700.62586A60A9 () git ! kde ! org
[Download RAW message or body]
Git commit 7be7f71afcf4ab0b56fbd25e29352bfd439cadb7 by Shaun Reich.
Committed on 24/03/2012 at 21:13.
Pushed by sreich into branch 'plasma/sreich/tasks-qml'.
add close action method
M +1 -1 plasma/desktop/applets/tasks/package/contents/ui/main.qml
M +5 -0 plasma/desktop/applets/tasks/tasks.cpp
M +1 -0 plasma/desktop/applets/tasks/tasks.h
http://commits.kde.org/kde-workspace/7be7f71afcf4ab0b56fbd25e29352bfd439cad=
b7
diff --git a/plasma/desktop/applets/tasks/package/contents/ui/main.qml b/pl=
asma/desktop/applets/tasks/package/contents/ui/main.qml
index 5520c31..0143472 100644
--- a/plasma/desktop/applets/tasks/package/contents/ui/main.qml
+++ b/plasma/desktop/applets/tasks/package/contents/ui/main.qml
@@ -69,7 +69,7 @@ Item {
move: Transition {
NumberAnimation {
properties: "x,y"
- easing {type: Easing.OutBack}
+ easing {type: Easing.OutQuad}
}
}
=
diff --git a/plasma/desktop/applets/tasks/tasks.cpp b/plasma/desktop/applet=
s/tasks/tasks.cpp
index 74a65d0..b729f31 100644
--- a/plasma/desktop/applets/tasks/tasks.cpp
+++ b/plasma/desktop/applets/tasks/tasks.cpp
@@ -116,6 +116,11 @@ void Tasks::toggleMinimized(unsigned long wId)
m_groupManager->rootGroup()->getMemberByWId(wId)->toggleMinimized();
}
=
+void Tasks::close ( long unsigned int wId )
+{
+ m_groupManager->rootGroup()->getMemberByWId(wId)->close();
+}
+
//NOTE: NEVER CALLED, JUST YET
void Tasks::configChanged()
{
diff --git a/plasma/desktop/applets/tasks/tasks.h b/plasma/desktop/applets/=
tasks/tasks.h
index d81ffd7..3459c27 100644
--- a/plasma/desktop/applets/tasks/tasks.h
+++ b/plasma/desktop/applets/tasks/tasks.h
@@ -47,6 +47,7 @@ public:
=
Q_INVOKABLE void minimize(unsigned long wId);
Q_INVOKABLE void toggleMinimized(unsigned long wId);
+ Q_INVOKABLE void close(unsigned long wId);
=
private Q_SLOTS:
void checkModel();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic