diff options
author | Saturn&Eric <[email protected]> | 2024-01-30 05:38:51 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-01-30 05:38:51 +0000 |
commit | 60b8aafec9b59da71ae5c36708f5533870c2f499 (patch) | |
tree | 2118b1847c356a5b0a53a13785f1b4f932fefa9f /src/ui/widgets/FileTreeView.h | |
parent | Merge pull request #126 from saturneric/dev/2.1.1/main (diff) | |
parent | doc: update translations (diff) | |
download | GpgFrontend-60b8aafec9b59da71ae5c36708f5533870c2f499.tar.gz GpgFrontend-60b8aafec9b59da71ae5c36708f5533870c2f499.zip |
Merge pull request #127 from saturneric/dev/2.1.1/main
Develop 2.1.2.2
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_; |