-rw-r--r-- | core/launcher/desktop.cpp | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index 649862b..6771a66 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp @@ -43,5 +43,2 @@ #endif -#if defined(QT_QWS_IPAQ) -#include "qpe/custom-ipaq.h" -#endif @@ -170,3 +167,2 @@ void DesktopApplication::receive( const QCString &msg, const QByteArray &data ) QString c, m; - stream >> k; @@ -175,3 +171,3 @@ void DesktopApplication::receive( const QCString &msg, const QByteArray &data ) - qWarning("KeyRegisterRecieved: %i, %s, %s", k, (const char*)c, (const char *)m); + qWarning("KeyRegisterReceived: %i, %s, %s", k, (const char*)c, (const char *)m ); keyRegisterList.append(QCopKeyRegister(k,c,m)); @@ -202,3 +198,4 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) { - if ((*it).getKeyCode() == ke->simpleData.keycode && !autoRepeat) + if ((*it).getKeyCode() == ke->simpleData.keycode && !autoRepeat) { + if(press) qDebug("press"); else qDebug("release"); QCopEnvelope((*it).getChannel().utf8(), (*it).getMessage().utf8()); @@ -206,2 +203,3 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e ) } + } @@ -743,6 +741,11 @@ void Desktop::rereadVolumes() { - Config cfg("Sound"); - cfg.setGroup("System"); - touchclick = cfg.readBoolEntry("Touch"); - keyclick = cfg.readBoolEntry("Key"); + Config cfg("qpe"); + cfg.setGroup("Volume"); + touchclick = cfg.readBoolEntry("TouchSound"); + keyclick = cfg.readBoolEntry("KeySound"); + alarmsound = cfg.readBoolEntry("AlarmSound"); +// Config cfg("Sound"); +// cfg.setGroup("System"); +// touchclick = cfg.readBoolEntry("Touch"); +// keyclick = cfg.readBoolEntry("Key"); } @@ -768,2 +771,3 @@ void Desktop::soundAlarm() #ifdef CUSTOM_SOUND_ALARM + if (alarmsound) CUSTOM_SOUND_ALARM; |