summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/desktop.cpp28
1 files changed, 21 insertions, 7 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp
index 6ee7132..0e60839 100644
--- a/core/launcher/desktop.cpp
+++ b/core/launcher/desktop.cpp
@@ -178,4 +178,6 @@ public:
{
- if ( !m_lcd_status ) // We must have turned it off
+ if ( !m_lcd_status ) { // We must have turned it off
ODevice::inst ( ) -> setDisplayStatus ( true );
+ m_lcd_status = true;
+ }
@@ -305,2 +307,10 @@ public:
+ void setDisplayState ( bool on )
+ {
+ if ( m_lcd_status != on ) {
+ ODevice::inst ( ) -> setDisplayStatus ( on );
+ m_lcd_status = on;
+ }
+ }
+
private:
@@ -379,8 +389,2 @@ void DesktopApplication::desktopMessage( const QCString &msg, const QByteArray &
}
- else if ( msg == "suspend()" ) {
- emit power();
- }
- else if ( msg == "home()" ) {
- qpedesktop-> home ( );
- }
#endif
@@ -414,2 +418,10 @@ void DesktopApplication::systemMessage( const QCString & msg, const QByteArray &
}
+ else if ( msg == "setDisplayState(int)" ) {
+ int state;
+ stream >> state;
+ m_screensaver-> setDisplayState ( state != 0 );
+ }
+ else if ( msg == "suspend()" ) {
+ emit power();
+ }
#endif
@@ -630,2 +642,4 @@ Desktop::Desktop() :
qApp->installEventFilter( this );
+
+ qApp-> setMainWidget ( launcher );
}