diff options
author | saturneric <[email protected]> | 2025-05-01 19:20:05 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-05-01 19:20:05 +0000 |
commit | be4cb8e0f9ab4cd1e41979de8809b04211c116f3 (patch) | |
tree | fc938a4d72ed9c9e4a5effeed8548265c2bfd4c5 /ui/FilePage.ui | |
parent | fix: windeployqt call in release workflow (diff) | |
download | GpgFrontend-main.tar.gz GpgFrontend-main.zip |
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 '')
-rw-r--r-- | ui/FilePage.ui | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/ui/FilePage.ui b/ui/FilePage.ui index b9ae7043..97a3ad94 100644 --- a/ui/FilePage.ui +++ b/ui/FilePage.ui @@ -6,8 +6,8 @@ <rect> <x>0</x> <y>0</y> - <width>858</width> - <height>64</height> + <width>805</width> + <height>666</height> </rect> </property> <property name="sizePolicy"> @@ -16,12 +16,6 @@ <verstretch>0</verstretch> </sizepolicy> </property> - <property name="maximumSize"> - <size> - <width>1041</width> - <height>619</height> - </size> - </property> <property name="windowTitle"> <string>Form</string> </property> @@ -190,7 +184,11 @@ </layout> </item> <item> - <layout class="QVBoxLayout" name="trewViewLayout"/> + <layout class="QVBoxLayout" name="trewViewLayout"> + <item> + <widget class="GpgFrontend::UI::FileTreeView" name="treeView"/> + </item> + </layout> </item> </layout> </item> @@ -198,6 +196,13 @@ </item> </layout> </widget> + <customwidgets> + <customwidget> + <class>GpgFrontend::UI::FileTreeView</class> + <extends>QTreeView</extends> + <header>ui/widgets/FileTreeView.h</header> + </customwidget> + </customwidgets> <resources> <include location="../gpgfrontend.qrc"/> </resources> |