diff options
| author | Peter Penz <[email protected]> | 2009-02-11 20:45:12 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-02-11 20:45:12 +0000 |
| commit | 2f47863c68bb0ac0417eed76f713ced651a4908a (patch) | |
| tree | 4deffd5657f8f39c02623d9a873e894b3a9ec8c0 /src/dolphinview.h | |
| parent | 5cec8a2dd95d6ccbc0d425c449df70cd645e3d29 (diff) | |
- allow the view implementations to attach custom actions to the context menu
- let the "details view" show the "[x] Expandable Folders" action in the context menu
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=924867
Diffstat (limited to 'src/dolphinview.h')
| -rw-r--r-- | src/dolphinview.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h index ea77024a6..5cedeecfa 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -496,10 +496,13 @@ signals: /** * Is emitted if a context menu is requested for the item \a item, - * which is part of \a url. If the item is 0, the context menu - * for the URL should be shown. + * which is part of \a url. If the item is null, the context menu + * for the URL should be shown and the custom actions \a customActions + * will be added. */ - void requestContextMenu(const KFileItem& item, const KUrl& url); + void requestContextMenu(const KFileItem& item, + const KUrl& url, + const QList<QAction*>& customActions); /** * Is emitted if an information message with the content \a msg @@ -560,7 +563,7 @@ private slots: * is used to check whether the context menu is related to an * item or to the viewport. */ - void openContextMenu(const QPoint& pos); + void openContextMenu(const QPoint& pos, const QList<QAction*>& customActions); /** * Drops dragged URLs to the destination path \a destPath. If @@ -628,8 +631,8 @@ private slots: void restoreCurrentItem(); /** - * If \a view can be positively identified as not being the source for the - * current drag operation, deleteLater() it immediately. Else stores + * If \a view can be positively identified as not being the source for the + * current drag operation, deleteLater() it immediately. Else stores * it for later deletion. */ void deleteWhenNotDragSource(QAbstractItemView* view); |
