summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/desktop.cpp28
-rw-r--r--core/launcher/desktop.h4
2 files changed, 18 insertions, 14 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 @@
43#endif 43#endif
44#if defined(QT_QWS_IPAQ)
45#include "qpe/custom-ipaq.h"
46#endif
47 44
@@ -170,3 +167,2 @@ void DesktopApplication::receive( const QCString &msg, const QByteArray &data )
170 QString c, m; 167 QString c, m;
171
172 stream >> k; 168 stream >> k;
@@ -175,3 +171,3 @@ void DesktopApplication::receive( const QCString &msg, const QByteArray &data )
175 171
176 qWarning("KeyRegisterRecieved: %i, %s, %s", k, (const char*)c, (const char *)m); 172 qWarning("KeyRegisterReceived: %i, %s, %s", k, (const char*)c, (const char *)m );
177 keyRegisterList.append(QCopKeyRegister(k,c,m)); 173 keyRegisterList.append(QCopKeyRegister(k,c,m));
@@ -196,3 +192,3 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e )
196 bool press = ke->simpleData.is_press; 192 bool press = ke->simpleData.is_press;
197 bool autoRepeat = ke ->simpleData.is_auto_repeat; 193 bool autoRepeat= ke->simpleData.is_auto_repeat;
198 if (!keyRegisterList.isEmpty()) 194 if (!keyRegisterList.isEmpty())
@@ -202,4 +198,6 @@ bool DesktopApplication::qwsEventFilter( QWSEvent *e )
202 { 198 {
203 if ((*it).getKeyCode() == ke->simpleData.keycode && !autoRepeat) 199 if ((*it).getKeyCode() == ke->simpleData.keycode && !autoRepeat) {
204 QCopEnvelope((*it).getChannel().utf8(), (*it).getMessage().utf8()); 200 if(press) qDebug("press"); else qDebug("release");
201 QCopEnvelope((*it).getChannel().utf8(), (*it).getMessage().utf8());
202 }
205 } 203 }
@@ -743,6 +741,11 @@ void Desktop::rereadVolumes()
743{ 741{
744 Config cfg("Sound"); 742 Config cfg("qpe");
745 cfg.setGroup("System"); 743 cfg.setGroup("Volume");
746 touchclick = cfg.readBoolEntry("Touch"); 744 touchclick = cfg.readBoolEntry("TouchSound");
747 keyclick = cfg.readBoolEntry("Key"); 745 keyclick = cfg.readBoolEntry("KeySound");
746 alarmsound = cfg.readBoolEntry("AlarmSound");
747// Config cfg("Sound");
748// cfg.setGroup("System");
749// touchclick = cfg.readBoolEntry("Touch");
750// keyclick = cfg.readBoolEntry("Key");
748} 751}
@@ -768,2 +771,3 @@ void Desktop::soundAlarm()
768#ifdef CUSTOM_SOUND_ALARM 771#ifdef CUSTOM_SOUND_ALARM
772 if (alarmsound)
769 CUSTOM_SOUND_ALARM; 773 CUSTOM_SOUND_ALARM;
diff --git a/core/launcher/desktop.h b/core/launcher/desktop.h
index e094dc0..9bc4be9 100644
--- a/core/launcher/desktop.h
+++ b/core/launcher/desktop.h
@@ -77,3 +77,3 @@ private:
77 QTimer *cardSendTimer; 77 QTimer *cardSendTimer;
78 QCopChannel *channel; 78 QCopChannel *channel;
79}; 79};
@@ -130,3 +130,3 @@ private:
130 QDateTime suspendTime; 130 QDateTime suspendTime;
131 bool keyclick,touchclick; 131 bool keyclick,touchclick,alarmsound;
132}; 132};