aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
diff options
context:
space:
mode:
authorq5sys <jt@xsystems.com>2018-03-29 13:11:20 -0400
committerq5sys <jt@xsystems.com>2018-03-29 13:11:20 -0400
commita8cf372fe539a3a1d9b32424f8e92eb72a0a921d (patch)
tree2f0ea313917ce051d141b92821b6e52750c8f350 /src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
parentltreewidget.h (diff)
downloadlumina-a8cf372fe539a3a1d9b32424f8e92eb72a0a921d.tar.gz
lumina-a8cf372fe539a3a1d9b32424f8e92eb72a0a921d.tar.bz2
lumina-a8cf372fe539a3a1d9b32424f8e92eb72a0a921d.zip
add sort by menu
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
index ce5dfd81..9471e297 100644
--- a/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/widgets/DirWidget2.cpp
@@ -156,6 +156,12 @@ void DirWidget::setThumbnailSize(int px){
ui->tool_zoom_out->setEnabled(px >16); //lower limit on image sizes
}
+void DirWidget::setTreeSortMode(int num){
+ bool now = true;
+ BW->setTreeWidgetSortColumn(num, now);
+ if(RCBW!=0){ RCBW->setTreeWidgetSortColumn(num, now ); }
+}
+
//====================
// Folder Pane
//====================
bgstack15