aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/FileTreeView.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-05-01 19:20:05 +0000
committersaturneric <[email protected]>2025-05-01 19:20:05 +0000
commitbe4cb8e0f9ab4cd1e41979de8809b04211c116f3 (patch)
treefc938a4d72ed9c9e4a5effeed8548265c2bfd4c5 /src/ui/widgets/FileTreeView.h
parentfix: windeployqt call in release workflow (diff)
downloadGpgFrontend-be4cb8e0f9ab4cd1e41979de8809b04211c116f3.tar.gz
GpgFrontend-be4cb8e0f9ab4cd1e41979de8809b04211c116f3.zip
refactor: FilePage to use embedded FileTreeViewHEADmain
This change refactors the FilePage widget to directly embed a FileTreeView instance. It improves code structure by removing the separate layout management and simplifies signal connections. Also, changes some log level from Error to Debug.
Diffstat (limited to 'src/ui/widgets/FileTreeView.h')
-rw-r--r--src/ui/widgets/FileTreeView.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/widgets/FileTreeView.h b/src/ui/widgets/FileTreeView.h
index 333e06bc..e7ddb607 100644
--- a/src/ui/widgets/FileTreeView.h
+++ b/src/ui/widgets/FileTreeView.h
@@ -41,7 +41,11 @@ class FileTreeView : public QTreeView {
* @param parent
* @param target_path
*/
- explicit FileTreeView(QWidget* parent, const QString& target_path);
+ explicit FileTreeView(QWidget* parent);
+
+ /**
+ */
+ void SetPath(const QString& target_path);
/**
* @brief Get the Current Path object