setWindowFlags(windowFlags() & ~Qt::WindowStaysOnTopHint);
show(); /* necessary to apply window flags?? */
}
- if ( event->type() == MainInterfaceClose_Type )
- {
- QApplication::closeAllWindows();
- QApplication::quit();
- }
}
void MainInterface::keyPressEvent( QKeyEvent *e )
static void ThreadCleanup( void *param)
{
intf_thread_t *p_intf = (intf_thread_t *)param;
- QEvent *event = new QEvent((QEvent::Type)(MainInterfaceClose_Type) );
+ QCloseEvent *event = new QCloseEvent();
QApplication::postEvent( p_intf->p_sys->p_mi, event );
}
//static const int PLUndockEvent_Type = QEvent::User + DialogEventType + 2;
//static const int PLDockEvent_Type = QEvent::User + DialogEventType + 3;
static const int SetVideoOnTopEvent_Type = QEvent::User + DialogEventType + 4;
-static const int MainInterfaceClose_Type = QEvent::User + 404;
class DialogEvent : public QEvent
{