aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lumina-fm/MainUI.cpp4
-rw-r--r--lumina-fm/MainUI.h1
-rw-r--r--lumina-fm/MainUI.ui9
3 files changed, 14 insertions, 0 deletions
diff --git a/lumina-fm/MainUI.cpp b/lumina-fm/MainUI.cpp
index 7f1e5fcc..dc35efa0 100644
--- a/lumina-fm/MainUI.cpp
+++ b/lumina-fm/MainUI.cpp
@@ -679,6 +679,10 @@ void MainUI::on_actionNew_Tab_triggered(){
tabBar->setCurrentIndex(tabBar->count()-1);
}
+void MainUI::on_actionSearch_triggered(){
+ QProcess::startDetached("lumina-search -dir \""+getCurrentDir()+"\"");
+}
+
void MainUI::on_actionClose_triggered(){
if(tabBar->count() > 1){
if(QMessageBox::Yes != QMessageBox::question(this, tr("Verify Quit"), tr("You have multiple tabs open. Are you sure you want to quit?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes ) ){
diff --git a/lumina-fm/MainUI.h b/lumina-fm/MainUI.h
index b18d25a5..345e2dd4 100644
--- a/lumina-fm/MainUI.h
+++ b/lumina-fm/MainUI.h
@@ -140,6 +140,7 @@ private slots:
//Menu Actions
void on_actionNew_Tab_triggered();
+ void on_actionSearch_triggered();
void on_actionClose_triggered();
void on_actionView_Hidden_Files_triggered();
void on_actionShow_Action_Buttons_triggered();
diff --git a/lumina-fm/MainUI.ui b/lumina-fm/MainUI.ui
index 4b2156c2..9ef367d7 100644
--- a/lumina-fm/MainUI.ui
+++ b/lumina-fm/MainUI.ui
@@ -1113,6 +1113,7 @@
<string>File</string>
</property>
<addaction name="actionNew_Tab"/>
+ <addaction name="actionSearch"/>
<addaction name="separator"/>
<addaction name="actionClose"/>
</widget>
@@ -1297,6 +1298,14 @@
<string>Load Thumbnails</string>
</property>
</action>
+ <action name="actionSearch">
+ <property name="text">
+ <string>Search Directory</string>
+ </property>
+ <property name="shortcut">
+ <string>Ctrl+F</string>
+ </property>
+ </action>
</widget>
<resources/>
<connections/>
bgstack15