DolphinQt: Handle the Host_UpdateTitle callback.

This commit is contained in:
waddlesplash
2015-09-12 14:00:08 -04:00
parent 7c91669ced
commit f5743f5ee9
6 changed files with 43 additions and 2 deletions

View File

@ -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())