mirror of https://github.com/mgba-emu/mgba.git
Qt: Double-clicking on the window toggles full screen
This commit is contained in:
parent
3a3b7dffdb
commit
cab9f3343b
1
CHANGES
1
CHANGES
|
@ -85,6 +85,7 @@ Misc:
|
|||
- GBA: Move A/V stream interface into core
|
||||
- GBA: Savestates now take into account savedata state machines (fixes #109)
|
||||
- Qt: Remember window position
|
||||
- Qt: Double-clicking on the window toggles full screen
|
||||
|
||||
0.1.1: (2015-01-24)
|
||||
Bugfixes:
|
||||
|
|
|
@ -385,6 +385,13 @@ void Window::dropEvent(QDropEvent* event) {
|
|||
m_controller->loadGame(url.path());
|
||||
}
|
||||
|
||||
void Window::mouseDoubleClickEvent(QMouseEvent* event) {
|
||||
if (event->button() != Qt::LeftButton) {
|
||||
return;
|
||||
}
|
||||
toggleFullScreen();
|
||||
}
|
||||
|
||||
void Window::enterFullScreen() {
|
||||
if (isFullScreen()) {
|
||||
return;
|
||||
|
|
|
@ -97,6 +97,7 @@ protected:
|
|||
virtual void focusOutEvent(QFocusEvent*) override;
|
||||
virtual void dragEnterEvent(QDragEnterEvent*) override;
|
||||
virtual void dropEvent(QDropEvent*) override;
|
||||
virtual void mouseDoubleClickEvent(QMouseEvent*) override;
|
||||
|
||||
private slots:
|
||||
void gameStarted(GBAThread*);
|
||||
|
|
Loading…
Reference in New Issue