Update active flag and notify "window_active_changed" to the client when the application is deactivated.

git-svn-id: http://voip.null.ro/svn/yate@3976 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2010-12-17 15:51:52 +00:00
parent 9846a6ca78
commit 129e031810
1 changed files with 6 additions and 0 deletions

View File

@ -2086,6 +2086,12 @@ bool QtWindow::event(QEvent* ev)
m_active = true;
Client::self()->toggle(this,"window_active_changed",true);
}
else if (ev->type() == QEvent::ApplicationDeactivate) {
if (m_active) {
m_active = false;
Client::self()->toggle(this,"window_active_changed",true);
}
}
return QWidget::event(ev);
}