]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/dolphinview.h
Context menu cleanups
[dolphin.git] / src / views / dolphinview.h
index da74011a7215423d88d6784b761fd70d3ba0d99c..6ebd91c536fe835145844f2d2d9477d180ac12b9 100644 (file)
@@ -488,7 +488,8 @@ signals:
      * for the URL should be shown and the custom actions \a customActions
      * will be added.
      */
-    void requestContextMenu(const KFileItem& item,
+    void requestContextMenu(const QPoint& pos,
+                            const KFileItem& item,
                             const KUrl& url,
                             const QList<QAction*>& customActions);
 
@@ -551,8 +552,6 @@ signals:
 
 protected:
     virtual void mouseReleaseEvent(QMouseEvent* event);
-    virtual void contextMenuEvent(QContextMenuEvent* event);
-    virtual void wheelEvent(QWheelEvent* event);
 
 private slots:
     /**
@@ -563,7 +562,9 @@ private slots:
 
     void slotItemActivated(int index);
     void slotItemMiddleClicked(int index);
-    void slotContextMenuRequested(int index, const QPointF& pos);
+    void slotItemContextMenuRequested(int index, const QPointF& pos);
+    void slotViewContextMenuRequested(const QPointF& pos);
+    void slotHeaderContextMenuRequested(const QPointF& pos);
     void slotItemExpansionToggleClicked(int index);
     void slotItemHovered(int index);
     void slotItemUnhovered(int index);
@@ -585,13 +586,6 @@ private slots:
      */
     void emitSelectionChangedSignal();
 
-    /**
-     * Opens the context menu on position \a pos. The position
-     * is used to check whether the context menu is related to an
-     * item or to the viewport.
-     */
-    void openContextMenu(const QPoint& pos, const QList<QAction*>& customActions);
-
     /**
      * Drops dragged URLs to the destination path \a destPath. If
      * the URLs are dropped above an item inside the destination path,