-rw-r--r-- | core/launcher/desktop.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp index 986ae5d..2ea6d27 100644 --- a/core/launcher/desktop.cpp +++ b/core/launcher/desktop.cpp | |||
@@ -302,32 +302,33 @@ public: | |||
302 | v [ 2 ] = QMAX( 1000 * i3, 100 ); | 302 | v [ 2 ] = QMAX( 1000 * i3, 100 ); |
303 | v [ 3 ] = 0; | 303 | v [ 3 ] = 0; |
304 | m_enable_dim_ac = ( ( i1 != 0 ) ? config.readNumEntry ( "DimAC", 1 ) : false ); | 304 | m_enable_dim_ac = ( ( i1 != 0 ) ? config.readNumEntry ( "DimAC", 1 ) : false ); |
305 | m_enable_lightoff_ac = ( ( i2 != 0 ) ? config.readNumEntry ( "LightOffAC", 1 ) : false ); | 305 | m_enable_lightoff_ac = ( ( i2 != 0 ) ? config.readNumEntry ( "LightOffAC", 1 ) : false ); |
306 | m_enable_onlylcdoff_ac = config.readNumEntry ( "LcdOffOnlyAC", 0 ); | 306 | m_enable_onlylcdoff_ac = config.readNumEntry ( "LcdOffOnlyAC", 0 ); |
307 | m_disable_apm_ac = config.readNumEntry ( "NoApmAC", 0 ); | 307 | m_disable_apm_ac = config.readNumEntry ( "NoApmAC", 0 ); |
308 | 308 | ||
309 | if ( !i1 && !i2 && !i3 ) | 309 | if ( !i1 && !i2 && !i3 ) |
310 | QWSServer::setScreenSaverInterval( 0 ); | 310 | QWSServer::setScreenSaverInterval( 0 ); |
311 | else | 311 | else |
312 | QWSServer::setScreenSaverIntervals( v ); | 312 | QWSServer::setScreenSaverIntervals( v ); |
313 | } | 313 | } |
314 | 314 | ||
315 | void setInterval ( int interval ) | 315 | void setInterval ( int interval ) |
316 | { | 316 | { |
317 | setIntervals ( -1, -1, interval ); | 317 | setIntervals ( -1, -1, interval ); |
318 | setIntervalsAC ( -1, -1, interval ); | ||
318 | } | 319 | } |
319 | 320 | ||
320 | void setMode ( int mode ) | 321 | void setMode ( int mode ) |
321 | { | 322 | { |
322 | if ( mode > m_disable_suspend ) | 323 | if ( mode > m_disable_suspend ) |
323 | setInterval( -1 ); | 324 | setInterval( -1 ); |
324 | m_disable_suspend = mode; | 325 | m_disable_suspend = mode; |
325 | } | 326 | } |
326 | 327 | ||
327 | void setBacklight ( int bright ) | 328 | void setBacklight ( int bright ) |
328 | { | 329 | { |
329 | // Read from config | 330 | // Read from config |
330 | Config config ( "qpe" ); | 331 | Config config ( "qpe" ); |
331 | config. setGroup ( "Screensaver" ); | 332 | config. setGroup ( "Screensaver" ); |
332 | m_backlight_normal = config. readNumEntry ( "Brightness", 255 ); | 333 | m_backlight_normal = config. readNumEntry ( "Brightness", 255 ); |
333 | 334 | ||