X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/81fcd720a2cc095262e52b8a40dd1472d774a415..148282e2d856b47ceb191eeef4c834118c8cdffd:/src/treeviewcontextmenu.h diff --git a/src/treeviewcontextmenu.h b/src/treeviewcontextmenu.h index a8dfac126..20a603573 100644 --- a/src/treeviewcontextmenu.h +++ b/src/treeviewcontextmenu.h @@ -23,6 +23,8 @@ #include #include +class TreeViewSidebarPage; + /** * @brief Represents the context menu which appears when doing a right * click on an item of the treeview. @@ -33,13 +35,13 @@ class TreeViewContextMenu : public QObject public: /** - * @parent Pointer to the parent widget the context menu + * @parent Pointer to the treeview sidebar page the context menu * belongs to. * @fileInfo Pointer to the file item the context menu * is applied. If 0 is passed, the context menu * is above the viewport. */ - TreeViewContextMenu(QWidget* parent, + TreeViewContextMenu(TreeViewSidebarPage* parent, const KFileItem& fileInfo); virtual ~TreeViewContextMenu(); @@ -69,8 +71,17 @@ private slots: /** Shows the properties of the item m_fileInfo. */ void showProperties(); + /** + * Sets the 'Show Hidden Files' setting for the + * folders panel to \a show. + */ + void setShowHiddenFiles(bool show); + +private: + void populateMimeData(QMimeData* mimeData, bool cut); + private: - QWidget* m_parent; + TreeViewSidebarPage* m_parent; KFileItem m_fileInfo; };