[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/nepomuk-kde/annotation/lib/gui
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2010-05-18 15:55:10
Message-ID: 20100518155510.E36D7AC8B9 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1128191 by trueg:
Added possibility for custom actions
M +8 -0 annotationmenu.cpp
M +9 -0 annotationmenu.h
--- trunk/playground/base/nepomuk-kde/annotation/lib/gui/annotationmenu.cpp #1128190:1128191
@@ -651,6 +651,8 @@
// a header will only be added in case that we actually find some possible annotations
addAnnotationActions( q );
}
+
+ q->addCustomActions( q );
}
}
@@ -925,4 +927,10 @@
d->clear();
}
+
+void Nepomuk::AnnotationMenu::addCustomActions( KMenu* menu )
+{
+ // do nothing
+}
+
#include "annotationmenu.moc"
--- trunk/playground/base/nepomuk-kde/annotation/lib/gui/annotationmenu.h #1128190:1128191
@@ -118,6 +118,15 @@
*/
void resourcesAnnotated();
+ protected:
+ /**
+ * Add custom actions to the menu.
+ * It is recommended to reimplement this method rather than using
+ * aboutToShow() since AnnotationMenu does already use the latter
+ * internally.
+ */
+ virtual void addCustomActions( KMenu* menu );
+
private:
class Private;
Private* const d;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic