aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm
diff options
context:
space:
mode:
authorq5sys <jt@xsystems.com>2018-03-29 13:18:51 -0400
committerq5sys <jt@xsystems.com>2018-03-29 13:18:51 -0400
commit6bec1387abf2d128b5f790676f014f4258b1806c (patch)
tree37cc3bbae739955ca46e3e6d57997a25c8faf685 /src-qt5/desktop-utils/lumina-fm
parentadd sort by menu (diff)
downloadlumina-6bec1387abf2d128b5f790676f014f4258b1806c.tar.gz
lumina-6bec1387abf2d128b5f790676f014f4258b1806c.tar.bz2
lumina-6bec1387abf2d128b5f790676f014f4258b1806c.zip
hide menu after selection
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm')
-rw-r--r--src-qt5/desktop-utils/lumina-fm/MainUI.cpp23
1 files changed, 11 insertions, 12 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/MainUI.cpp b/src-qt5/desktop-utils/lumina-fm/MainUI.cpp
index 22f4f934..593fd536 100644
--- a/src-qt5/desktop-utils/lumina-fm/MainUI.cpp
+++ b/src-qt5/desktop-utils/lumina-fm/MainUI.cpp
@@ -602,7 +602,7 @@ void MainUI::viewModeChanged(bool active){
for(int i=0; i<DWLIST.length(); i++){
DWLIST[i]->setShowDetails(showDetails);
}
-
+ui->menuView_Mode->hide();
}
@@ -612,10 +612,8 @@ void MainUI::sortModeName(bool active){
settings->setValue("sortmode","0");
for(int i=0; i<DWLIST.length(); i++){
DWLIST[i]->setTreeSortMode(0);
- qDebug() << "sortModeName";
- qDebug() << "bool" << active;
-
-}
+ }
+ ui->menuSort_Mode->hide();
}
void MainUI::sortModeSize(bool active){
@@ -624,9 +622,8 @@ void MainUI::sortModeSize(bool active){
settings->setValue("sortmode","1");
for(int i=0; i<DWLIST.length(); i++){
DWLIST[i]->setTreeSortMode(1);
- qDebug() << "sortModeSize";
- qDebug() << "bool" << active;
-}
+ }
+ ui->menuSort_Mode->hide();
}
void MainUI::sortModeType(bool active){
@@ -635,7 +632,8 @@ void MainUI::sortModeType(bool active){
settings->setValue("sortmode","2");
for(int i=0; i<DWLIST.length(); i++){
DWLIST[i]->setTreeSortMode(2);
-}
+ }
+ ui->menuSort_Mode->hide();
}
void MainUI::sortModeDateM(bool active){
@@ -644,7 +642,8 @@ void MainUI::sortModeDateM(bool active){
settings->setValue("sortmode","3");
for(int i=0; i<DWLIST.length(); i++){
DWLIST[i]->setTreeSortMode(3);
-}
+ }
+ ui->menuSort_Mode->hide();
}
void MainUI::sortModeDateC(bool active){
@@ -653,9 +652,9 @@ void MainUI::sortModeDateC(bool active){
settings->setValue("sortmode","4");
for(int i=0; i<DWLIST.length(); i++){
DWLIST[i]->setTreeSortMode(4);
+ }
+ ui->menuSort_Mode->hide();
}
-}
-
/*void MainUI::groupModeChanged(bool active){
if(!active){ return; } //on every change, all radio buttons will call this function - only run this once though
bgstack15