summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/desktop.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp
index 6771a66..693e77f 100644
--- a/core/launcher/desktop.cpp
+++ b/core/launcher/desktop.cpp
@@ -17,51 +17,49 @@
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20 20
21#include "desktop.h" 21#include "desktop.h"
22#include "info.h" 22#include "info.h"
23#include "launcher.h" 23#include "launcher.h"
24#include "mrulist.h" 24#include "mrulist.h"
25#include "qcopbridge.h" 25#include "qcopbridge.h"
26#include "shutdownimpl.h" 26#include "shutdownimpl.h"
27#include "startmenu.h" 27#include "startmenu.h"
28#include "taskbar.h" 28#include "taskbar.h"
29#include "transferserver.h" 29#include "transferserver.h"
30#include "irserver.h" 30#include "irserver.h"
31#include "packageslave.h" 31#include "packageslave.h"
32 32
33#include <qpe/applnk.h> 33#include <qpe/applnk.h>
34#include <qpe/mimetype.h> 34#include <qpe/mimetype.h>
35#include <qpe/password.h> 35#include <qpe/password.h>
36#include <qpe/config.h> 36#include <qpe/config.h>
37#include <qpe/power.h> 37#include <qpe/power.h>
38#include <qpe/timeconversion.h> 38#include <qpe/timeconversion.h>
39#include <qpe/qcopenvelope_qws.h> 39#include <qpe/qcopenvelope_qws.h>
40#include <qpe/global.h> 40#include <qpe/global.h>
41#ifdef QT_QWS_CUSTOM 41#include <qpe/custom.h>
42#include "qpe/custom.h"
43#endif
44 42
45#include <qgfx_qws.h> 43#include <qgfx_qws.h>
46#include <qmainwindow.h> 44#include <qmainwindow.h>
47#include <qmessagebox.h> 45#include <qmessagebox.h>
48#include <qtimer.h> 46#include <qtimer.h>
49#include <qwindowsystem_qws.h> 47#include <qwindowsystem_qws.h>
50 48
51#include <qvaluelist.h> 49#include <qvaluelist.h>
52 50
53#include <stdlib.h> 51#include <stdlib.h>
54#include <unistd.h> 52#include <unistd.h>
55 53
56class QCopKeyRegister 54class QCopKeyRegister
57{ 55{
58public: 56public:
59 QCopKeyRegister() : keyCode(0) { } 57 QCopKeyRegister() : keyCode(0) { }
60 QCopKeyRegister(int k, const QString &c, const QString &m) 58 QCopKeyRegister(int k, const QString &c, const QString &m)
61 : keyCode(k), channel(c), message(m) { } 59 : keyCode(k), channel(c), message(m) { }
62 60
63 int getKeyCode() const { return keyCode; } 61 int getKeyCode() const { return keyCode; }
64 QString getChannel() const { return channel; } 62 QString getChannel() const { return channel; }
65 QString getMessage() const { return message; } 63 QString getMessage() const { return message; }
66 64
67private: 65private:
@@ -748,45 +746,45 @@ void Desktop::rereadVolumes()
748// cfg.setGroup("System"); 746// cfg.setGroup("System");
749// touchclick = cfg.readBoolEntry("Touch"); 747// touchclick = cfg.readBoolEntry("Touch");
750// keyclick = cfg.readBoolEntry("Key"); 748// keyclick = cfg.readBoolEntry("Key");
751} 749}
752 750
753void Desktop::keyClick() 751void Desktop::keyClick()
754{ 752{
755#ifdef CUSTOM_SOUND_KEYCLICK 753#ifdef CUSTOM_SOUND_KEYCLICK
756 if ( keyclick ) 754 if ( keyclick )
757 CUSTOM_SOUND_KEYCLICK; 755 CUSTOM_SOUND_KEYCLICK;
758#endif 756#endif
759} 757}
760 758
761void Desktop::screenClick() 759void Desktop::screenClick()
762{ 760{
763#ifdef CUSTOM_SOUND_TOUCH 761#ifdef CUSTOM_SOUND_TOUCH
764 if ( touchclick ) 762 if ( touchclick )
765 CUSTOM_SOUND_TOUCH; 763 CUSTOM_SOUND_TOUCH;
766#endif 764#endif
767} 765}
768 766
769void Desktop::soundAlarm() 767void Desktop::soundAlarm()
770{ 768{
771#ifdef CUSTOM_SOUND_ALARM 769#ifdef CUSTOM_SOUND_ALARM
772 if (alarmsound) 770 if (qpedesktop->alarmsound)
773 CUSTOM_SOUND_ALARM; 771 CUSTOM_SOUND_ALARM;
774#endif 772#endif
775} 773}
776 774
777bool Desktop::eventFilter( QObject *w, QEvent *ev ) 775bool Desktop::eventFilter( QObject *w, QEvent *ev )
778{ 776{
779 if ( ev->type() == QEvent::KeyPress ) { 777 if ( ev->type() == QEvent::KeyPress ) {
780 QKeyEvent *ke = (QKeyEvent *)ev; 778 QKeyEvent *ke = (QKeyEvent *)ev;
781 if ( ke->key() == Qt::Key_F11 ) { // menu key 779 if ( ke->key() == Qt::Key_F11 ) { // menu key
782 QWidget *active = qApp->activeWindow(); 780 QWidget *active = qApp->activeWindow();
783 if ( active && active->isPopup() ) { 781 if ( active && active->isPopup() ) {
784 active->close(); 782 active->close();
785 } 783 }
786 raiseMenu(); 784 raiseMenu();
787 return TRUE; 785 return TRUE;
788 } 786 }
789 } 787 }
790 return FALSE; 788 return FALSE;
791} 789}
792 790