Merge pull request #1495 from DanWin/window

Hide windows instead of closing them when clicking on close
This commit is contained in:
Vesa V
2015-01-04 17:20:03 +02:00
10 changed files with 80 additions and 0 deletions

View File

@@ -61,6 +61,9 @@ public slots:
void addSteps();
void removeSteps();
protected:
virtual void closeEvent( QCloseEvent * _ce );
private:
virtual void keyPressEvent( QKeyEvent * _ke );

View File

@@ -26,6 +26,7 @@
#define CONTROLLER_RACK_VIEW_H
#include <QWidget>
#include <QCloseEvent>
#include "SerializingObject.h"
#include "lmms_basics.h"
@@ -56,6 +57,8 @@ public:
public slots:
void deleteController( ControllerView * _view );
protected:
virtual void closeEvent( QCloseEvent * _ce );
private slots:
virtual void update();

View File

@@ -99,6 +99,9 @@ public:
// make sure the display syncs up with the fx mixer.
// useful for loading projects
void refreshDisplay();
protected:
virtual void closeEvent( QCloseEvent * _ce );
private slots:
void updateFaders();

View File

@@ -27,6 +27,7 @@
#define PROJECT_NOTES_H
#include <QMainWindow>
#include <QCloseEvent>
#include "JournallingObject.h"
@@ -56,6 +57,7 @@ public:
protected:
virtual void closeEvent( QCloseEvent * _ce );
void setupActions();

View File

@@ -65,6 +65,8 @@ public:
public slots:
void scrolled( int _new_pos );
protected:
virtual void closeEvent( QCloseEvent * _ce );
private slots:
void setHighQuality( bool );