aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/MainUI.h
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-fm/MainUI.h')
-rw-r--r--lumina-fm/MainUI.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/lumina-fm/MainUI.h b/lumina-fm/MainUI.h
index 92d1457b..2a711e8f 100644
--- a/lumina-fm/MainUI.h
+++ b/lumina-fm/MainUI.h
@@ -162,7 +162,15 @@ signals:
void Si_AdaptStatusBar(QFileInfoList fileList, QString path, QString messageFolders, QString messageFiles);
protected:
- void resizeEvent(QResizeEvent*);
+ void closeEvent(QCloseEvent *ev){
+ emit ClientClosed(this);
+ QMainWindow::closeEvent(ev);
+ }
+ void resizeEvent(QResizeEvent *ev){
+ //Save the new size to the settings file for later
+ settings->setValue("preferences/MainWindowSize", ev->size());
+ QMainWindow::resizeEvent(ev); //just in case the window needs to see the event too
+ }
};
bgstack15