diff options
Diffstat (limited to 'src/ui/widgets/FileTreeView.h')
-rw-r--r-- | src/ui/widgets/FileTreeView.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/ui/widgets/FileTreeView.h b/src/ui/widgets/FileTreeView.h index 9e9b03dd..cd3b1cb8 100644 --- a/src/ui/widgets/FileTreeView.h +++ b/src/ui/widgets/FileTreeView.h @@ -38,14 +38,14 @@ class FileTreeView : public QTreeView { /** * @brief Get the Current Path object * - * @return std::filesystem::path + * @return QString */ auto GetCurrentPath() -> QString; /** * @brief Get the Selected Path object * - * @return std::filesystem::path + * @return QString */ auto GetSelectedPath() -> QString; @@ -53,7 +53,7 @@ class FileTreeView : public QTreeView { * @brief Get the Path By Click Point object * * @param point - * @return std::filesystem::path + * @return QString */ auto GetPathByClickPoint(const QPoint& point) -> QString; @@ -88,6 +88,13 @@ class FileTreeView : public QTreeView { */ void paintEvent(QPaintEvent* event) override; + /** + * @brief + * + * @param event + */ + void mousePressEvent(QMouseEvent* event) override; + signals: /** @@ -218,6 +225,7 @@ class FileTreeView : public QTreeView { QString selected_path_; ///< QMenu* popup_menu_; + QMenu* new_item_action_menu_; QAction* action_open_file_; QAction* action_rename_file_; QAction* action_delete_file_; |