summaryrefslogtreecommitdiff
path: root/core/launcher/desktop.cpp
Unidiff
Diffstat (limited to 'core/launcher/desktop.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/desktop.cpp36
1 files changed, 12 insertions, 24 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp
index ab4f14a..7662e48 100644
--- a/core/launcher/desktop.cpp
+++ b/core/launcher/desktop.cpp
@@ -45,2 +45,4 @@
45 45
46#include <opie/odevice.h>
47
46#include <qgfx_qws.h> 48#include <qgfx_qws.h>
@@ -269,3 +271,3 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e )
269 } 271 }
270 if ( press ) 272 if (( press && !autoRepeat ) || ( !press && autoRepeat ))
271 qpedesktop->keyClick(); 273 qpedesktop->keyClick();
@@ -329,6 +331,2 @@ QPE_MEMALERTER_IMPL
329 331
330#if defined(CUSTOM_SOUND_IMPL)
331CUSTOM_SOUND_IMPL
332#endif
333
334//=========================================================================== 332//===========================================================================
@@ -341,6 +339,2 @@ Desktop::Desktop() :
341{ 339{
342#ifdef CUSTOM_SOUND_INIT
343 CUSTOM_SOUND_INIT;
344#endif
345
346 qpedesktop = this; 340 qpedesktop = this;
@@ -758,6 +752,4 @@ void Desktop::keyClick()
758{ 752{
759#ifdef CUSTOM_SOUND_KEYCLICK
760 if ( keyclick ) 753 if ( keyclick )
761 CUSTOM_SOUND_KEYCLICK; 754 ODevice::inst ( )-> keySound ( );
762#endif
763} 755}
@@ -766,6 +758,4 @@ void Desktop::screenClick()
766{ 758{
767#ifdef CUSTOM_SOUND_TOUCH
768 if ( touchclick ) 759 if ( touchclick )
769 CUSTOM_SOUND_TOUCH; 760 ODevice::inst ( )-> touchSound ( );
770#endif
771} 761}
@@ -774,9 +764,7 @@ void Desktop::soundAlarm()
774{ 764{
775#ifdef CUSTOM_SOUND_ALARM
776 if (qpedesktop->alarmsound) 765 if (qpedesktop->alarmsound)
777 CUSTOM_SOUND_ALARM; 766 ODevice::inst ( )-> alarmSound ( );
778#endif
779} 767}
780 768
781bool Desktop::eventFilter( QObject *w, QEvent *ev ) 769bool Desktop::eventFilter( QObject *, QEvent *ev )
782{ 770{
@@ -786,11 +774,11 @@ bool Desktop::eventFilter( QObject *w, QEvent *ev )
786 QWidget *active = qApp->activeWindow(); 774 QWidget *active = qApp->activeWindow();
787 if ( active && active->isPopup() ) { 775
776 if ( active && active-> isPopup ( ))
788 active->close(); 777 active->close();
789 } 778
790 raiseMenu(); 779 raiseMenu();
791 return TRUE; 780 return true;
792 } 781 }
793 } 782 }
794 return FALSE; 783 return false;
795} 784}
796