|
|
@ -268,7 +268,7 @@ KAstTopLevel::KAstTopLevel()
|
|
|
|
KAstTopLevel::~KAstTopLevel()
|
|
|
|
KAstTopLevel::~KAstTopLevel()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#if defined TQ_WS_X11 && ! defined K_WS_TQTONLY
|
|
|
|
#if defined TQ_WS_X11 && ! defined K_WS_TQTONLY
|
|
|
|
XAutoRepeatOn( qt_xdisplay() );
|
|
|
|
XAutoRepeatOn( tqt_xdisplay() );
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
soundDict.setAutoDelete(true);
|
|
|
|
soundDict.setAutoDelete(true);
|
|
|
|
soundDict.clear();
|
|
|
|
soundDict.clear();
|
|
|
@ -458,7 +458,7 @@ void KAstTopLevel::focusInEvent( TQFocusEvent *e )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
view->pause( false );
|
|
|
|
view->pause( false );
|
|
|
|
#if defined TQ_WS_X11 && ! defined K_WS_TQTONLY
|
|
|
|
#if defined TQ_WS_X11 && ! defined K_WS_TQTONLY
|
|
|
|
XAutoRepeatOff( qt_xdisplay() );
|
|
|
|
XAutoRepeatOff( tqt_xdisplay() );
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
KMainWindow::focusInEvent(e);
|
|
|
|
KMainWindow::focusInEvent(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -467,7 +467,7 @@ void KAstTopLevel::focusOutEvent( TQFocusEvent *e )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
view->pause( true );
|
|
|
|
view->pause( true );
|
|
|
|
#if defined TQ_WS_X11 && ! defined K_WS_TQTONLY
|
|
|
|
#if defined TQ_WS_X11 && ! defined K_WS_TQTONLY
|
|
|
|
XAutoRepeatOn( qt_xdisplay() );
|
|
|
|
XAutoRepeatOn( tqt_xdisplay() );
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
KMainWindow::focusOutEvent(e);
|
|
|
|
KMainWindow::focusOutEvent(e);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -493,7 +493,7 @@ void KAstTopLevel::slotNewGame()
|
|
|
|
bool KAstTopLevel::queryExit()
|
|
|
|
bool KAstTopLevel::queryExit()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#if defined TQ_WS_X11 && ! defined K_WS_TQTONLY
|
|
|
|
#if defined TQ_WS_X11 && ! defined K_WS_TQTONLY
|
|
|
|
XAutoRepeatOn( qt_xdisplay() );
|
|
|
|
XAutoRepeatOn( tqt_xdisplay() );
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|