mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
DolphinQt: adapt so that it can boot games.
This commit is contained in:
parent
29593d403b
commit
3d63d22e53
11 changed files with 395 additions and 63 deletions
24
Source/Core/DolphinQt/VideoInterface/RenderWidget.cpp
Normal file
24
Source/Core/DolphinQt/VideoInterface/RenderWidget.cpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
// Copyright 2014 Dolphin Emulator Project
|
||||
// Licensed under GPLv2
|
||||
// Refer to the license.txt file included.
|
||||
|
||||
#include <QMessageBox>
|
||||
|
||||
#include "DolphinQt/VideoInterface/RenderWidget.h"
|
||||
|
||||
DRenderWidget::DRenderWidget(QWidget* parent_widget)
|
||||
: QWidget(parent_widget)
|
||||
{
|
||||
setAttribute(Qt::WA_NativeWindow, true);
|
||||
setAttribute(Qt::WA_OpaquePaintEvent, true);
|
||||
setAttribute(Qt::WA_NoSystemBackground, true);
|
||||
}
|
||||
|
||||
void DRenderWidget::closeEvent(QCloseEvent* e)
|
||||
{
|
||||
// TODO: update render window positions in config
|
||||
|
||||
// TODO: Do this differently...
|
||||
emit Closed();
|
||||
QWidget::closeEvent(e);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue