mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DolphinQt: Handle the Host_UpdateTitle callback.
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user