aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-config/mainWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/core-utils/lumina-config/mainWindow.cpp')
-rw-r--r--src-qt5/core-utils/lumina-config/mainWindow.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src-qt5/core-utils/lumina-config/mainWindow.cpp b/src-qt5/core-utils/lumina-config/mainWindow.cpp
index 45008b07..31d746d5 100644
--- a/src-qt5/core-utils/lumina-config/mainWindow.cpp
+++ b/src-qt5/core-utils/lumina-config/mainWindow.cpp
@@ -15,6 +15,7 @@
//=============
mainWindow::mainWindow() : QMainWindow(), ui(new Ui::mainWindow()){
ui->setupUi(this);
+ setupIcons();
changePage(""); //load the default main page
}
@@ -31,6 +32,7 @@ void mainWindow::slotSingleInstance(){
void mainWindow::setupIcons(){
ui->actionSave->setIcon( LXDG::findIcon("document-save","") );
+ ui->actionBack->setIcon( LXDG::findIcon("go-previous-view","") );
}
//=============
@@ -75,3 +77,15 @@ void mainWindow::page_change(QString id){
}
changePage(id);
}
+
+void mainWindow::on_actionSave_triggered(){
+ pageCanSave(false); //disable for the moment (page might re-enable later)
+ static_cast<PageWidget*>(this->centralWidget())->SaveSettings();
+
+}
+
+void mainWindow::on_actionBack_triggered(){
+ if(cpage.isEmpty()){ this->close(); } //main menu - go ahead and close it
+ else{ page_change(""); } //Use the interactive wrapper (check for save state, etc).
+}
+
bgstack15