[rkward] rkward/windows: Use Tree view for the file browser instead of whatever the default view happens to be set to
Thomas Friedrichsmeier
null at kde.org
Thu Apr 19 18:33:33 UTC 2018
Git commit 7c13e680bfe24426fffdb0942689d3a4067ddecd by Thomas Friedrichsmeier, on behalf of Nathaniel Graham.
Committed on 19/04/2018 at 18:29.
Pushed by tfry into branch 'master'.
Use Tree view for the file browser instead of whatever the default view happens to be set to
Summary:
RKWard's file browser currently relies on the default view provided by `KDirOperator` for its file browser panel rather than defining its own preferred view. This is discouraged because:
- The current default view ("Short view") is probably not ideal anyway, as it will result in a horizontal scrollbar
- We are preparing to change the default to something much less appropriate for your use case; see {D12326}
Therefore, just use Tree View by default, which is much more appropriate anyway. We recently did this for Kate too in {D12224}
Reviewers: #rkward
Subscribers: RKWard-Devel-list
Differential Revision: https://phabricator.kde.org/D12358
M +1 -1 rkward/windows/rkfilebrowser.cpp
https://commits.kde.org/rkward/7c13e680bfe24426fffdb0942689d3a4067ddecd
diff --git a/rkward/windows/rkfilebrowser.cpp b/rkward/windows/rkfilebrowser.cpp
index e33cb4ce..1cd5196b 100644
--- a/rkward/windows/rkfilebrowser.cpp
+++ b/rkward/windows/rkfilebrowser.cpp
@@ -114,7 +114,7 @@ RKFileBrowserWidget::RKFileBrowserWidget (QWidget *parent) : QWidget (parent) {
dir->setPreviewWidget (0);
KConfigGroup config = KSharedConfig::openConfig ()->group ("file browser window");
dir->readConfig (config);
- dir->setView (KFile::Default);
+ dir->setView (KFile::Tree);
connect (RKWardMainWindow::getMain (), &RKWardMainWindow::aboutToQuitRKWard, this, &RKFileBrowserWidget::saveConfig);
layout->addWidget (dir);
More information about the rkward-tracker
mailing list