screensaver/devicedialogplugins/snsrdevicedialogplugin/src/snsrdevicedialog.cpp
changeset 73 94a8be33ee70
parent 69 87476091b3f5
child 86 e4f038c420f7
equal deleted inserted replaced
71:1db7cc813a4e 73:94a8be33ee70
   313 /*!
   313 /*!
   314     Send low power mode on/off request to autolock.
   314     Send low power mode on/off request to autolock.
   315  */
   315  */
   316 void SnsrDeviceDialog::requestScreenMode(Screensaver::ScreenPowerMode mode)
   316 void SnsrDeviceDialog::requestScreenMode(Screensaver::ScreenPowerMode mode)
   317 {
   317 {
       
   318     /* TEMPORARY FIX for the "black screen jam" bug. To be re-enabled when proper fix is found.
   318     QVariantMap data;
   319     QVariantMap data;
   319     QVariantList rowLimits;
   320     QVariantList rowLimits;
   320     if ( mode == Screensaver::ScreenModeOff ) {
   321     if ( mode == Screensaver::ScreenModeOff ) {
   321         data.insert(dataKeySwitchLights, 0);
   322         data.insert(dataKeySwitchLights, 0);
   322         data.insert(dataKeySwitchLowPower, rowLimits); // empty list means "low power off"
   323         data.insert(dataKeySwitchLowPower, rowLimits); // empty list means "low power off"
   334         data.insert(dataKeySwitchLights, 30);
   335         data.insert(dataKeySwitchLights, 30);
   335         data.insert(dataKeySwitchLowPower, rowLimits); // empty list means "low power off"
   336         data.insert(dataKeySwitchLowPower, rowLimits); // empty list means "low power off"
   336     }
   337     }
   337     
   338     
   338     emit deviceDialogData(data);
   339     emit deviceDialogData(data);
       
   340     */
   339 }
   341 }
   340 
   342 
   341 /*!
   343 /*!
   342     Called when the dialog is created if they are any currently
   344     Called when the dialog is created if they are any currently
   343     activate universal indicators present.
   345     activate universal indicators present.