mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
DolphinQt: Handle the Host_UpdateTitle callback.
This commit is contained in:
parent
7c91669ced
commit
f5743f5ee9
6 changed files with 43 additions and 2 deletions
|
@ -17,6 +17,7 @@
|
|||
#include "Core/HW/ProcessorInterface.h"
|
||||
|
||||
#include "DolphinQt/AboutDialog.h"
|
||||
#include "DolphinQt/Host.h"
|
||||
#include "DolphinQt/MainWindow.h"
|
||||
#include "DolphinQt/SystemInfo.h"
|
||||
#include "DolphinQt/Utils/Resources.h"
|
||||
|
@ -114,6 +115,17 @@ DMainWindow::~DMainWindow()
|
|||
{
|
||||
}
|
||||
|
||||
bool DMainWindow::event(QEvent* e)
|
||||
{
|
||||
if (e->type() == HostEvent::TitleEvent)
|
||||
{
|
||||
HostTitleEvent* htev = (HostTitleEvent*)e;
|
||||
m_ui->statusbar->showMessage(QString::fromStdString(htev->m_title), 1500);
|
||||
return true;
|
||||
}
|
||||
return QMainWindow::event(e);
|
||||
}
|
||||
|
||||
void DMainWindow::closeEvent(QCloseEvent* ce)
|
||||
{
|
||||
if (!OnStop())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue