forked from LMMS/lmms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/close-all-but-this' into close-a…
…ll-but-this-update
- Loading branch information
Showing
5 changed files
with
95 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef SIGNALSENDER_H | ||
#define SIGNALSENDER_H | ||
|
||
#include <QObject> | ||
#include "SubWindow.h" | ||
|
||
class SignalSender : public QObject | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
static SignalSender* getInstance(); | ||
|
||
signals: | ||
void closeAllSignal(); | ||
void closeOthersSignal(SubWindow * source); | ||
|
||
public slots: | ||
void closeAll(); | ||
void closeOthers(SubWindow* source); | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "SignalSender.h" | ||
|
||
SignalSender* SignalSender::getInstance() | ||
{ | ||
static SignalSender* instance = new SignalSender(); | ||
return instance; | ||
} | ||
|
||
void SignalSender::closeAll() | ||
{ | ||
emit closeAllSignal(); | ||
} | ||
|
||
void SignalSender::closeOthers(SubWindow* source) | ||
{ | ||
emit closeOthersSignal(source); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters