summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/light-and-power/light.cpp22
-rw-r--r--core/settings/light-and-power/lightsettingsbase.ui117
2 files changed, 122 insertions, 17 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp
index 97120f2..77c6b40 100644
--- a/core/settings/light-and-power/light.cpp
+++ b/core/settings/light-and-power/light.cpp
@@ -57,4 +57,4 @@ using namespace Opie;
-LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
- : LightSettingsBase( parent, name, TRUE, fl )
+LightSettings::LightSettings( QWidget* parent, const char* name, WFlags )
+ : LightSettingsBase( parent, name, TRUE, WStyle_ContextHelp )
{
@@ -63,5 +63,3 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
// Not supported yet - hide until implemented
- auto_brightness->setEnabled( false );
CalibrateLightSensor->setEnabled( false );
- auto_brightness_ac_3->setEnabled( false );
CalibrateLightSensorAC->setEnabled( false );
@@ -77,5 +75,3 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
config.setGroup( "Screensaver" );
-
int interval;
-
// battery spinboxes
@@ -126,6 +122,2 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
// battery check and slider
-
-
-
-
LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 );
@@ -152,4 +144,4 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
config.setGroup( "Ipaqlightsensor" );
- auto_brightness->setChecked( config.readNumEntry("LightSensor",1) != 0 );
- auto_brightness_ac_3->setChecked( config.readNumEntry("LightSensorAC",1) != 0 );
+ auto_brightness->setChecked( config.readNumEntry("LightSensor",0) != 0 );
+ auto_brightness_ac_3->setChecked( config.readNumEntry("LightSensorAC",0) != 0 );
//LightStepSpin->setValue( config.readNumEntry("Steps", 10 ) );
@@ -170,4 +162,3 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl )
-LightSettings::~LightSettings()
-{
+LightSettings::~LightSettings() {
}
@@ -188,3 +179,2 @@ void LightSettings::reject()
set_fl(initbright);
-
QDialog::reject();
@@ -286,3 +276,3 @@ void LightSettings::done(int r)
QDialog::done(r);
- close ( );
+ close ();
}
diff --git a/core/settings/light-and-power/lightsettingsbase.ui b/core/settings/light-and-power/lightsettingsbase.ui
index fee5c2c..effa460 100644
--- a/core/settings/light-and-power/lightsettingsbase.ui
+++ b/core/settings/light-and-power/lightsettingsbase.ui
@@ -335,2 +335,6 @@
</property>
+ <property>
+ <name>whatsThis</name>
+ <string>set a fix value for backlight</string>
+ </property>
</widget>
@@ -466,2 +470,6 @@
</property>
+ <property>
+ <name>whatsThis</name>
+ <string>Advanced settings for light sensor handling</string>
+ </property>
</widget>
@@ -774,2 +782,6 @@
</property>
+ <property>
+ <name>whatsThis</name>
+ <string>set a fix value for backlight</string>
+ </property>
</widget>
@@ -905,2 +917,6 @@
</property>
+ <property>
+ <name>whatsThis</name>
+ <string>Advanced settings for light sensor handling</string>
+ </property>
</widget>
@@ -1176,4 +1192,89 @@
</images>
+<connections>
+ <connection>
+ <sender>auto_brightness</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>brightness</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>auto_brightness_ac_3</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>brightness_ac_3</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>auto_brightness_ac_3</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>TextLabel1_3_2</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>auto_brightness</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>TextLabel1_3</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>auto_brightness</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>interval_dim</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>auto_brightness_ac_3</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>interval_dim_ac_3</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>auto_brightness</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>PixmapLabel2</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>auto_brightness</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>TextLabel4</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>auto_brightness</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>TextLabel5</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>auto_brightness</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>PixmapLabel1</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>auto_brightness_ac_3</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>PixmapLabel2_2_3</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>auto_brightness_ac_3</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>TextLabel6</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>auto_brightness_ac_3</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>TextLabel7</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+ <connection>
+ <sender>auto_brightness_ac_3</sender>
+ <signal>toggled(bool)</signal>
+ <receiver>PixmapLabel1_2_3</receiver>
+ <slot>setDisabled(bool)</slot>
+ </connection>
+</connections>
<tabstops>
- <tabstop>auto_brightness</tabstop>
<tabstop>interval_dim</tabstop>
@@ -1181,3 +1282,17 @@
<tabstop>interval_suspend</tabstop>
+ <tabstop>LcdOffOnly</tabstop>
<tabstop>brightness</tabstop>
+ <tabstop>auto_brightness</tabstop>
+ <tabstop>CalibrateLightSensor</tabstop>
+ <tabstop>TabWidget3</tabstop>
+ <tabstop>interval_lightoff_ac_3</tabstop>
+ <tabstop>interval_suspend_ac_3</tabstop>
+ <tabstop>interval_dim_ac_3</tabstop>
+ <tabstop>LcdOffOnly_2_3</tabstop>
+ <tabstop>brightness_ac_3</tabstop>
+ <tabstop>auto_brightness_ac_3</tabstop>
+ <tabstop>CalibrateLightSensorAC</tabstop>
+ <tabstop>lowSpinBox</tabstop>
+ <tabstop>warnintervalBox</tabstop>
+ <tabstop>criticalSpinBox</tabstop>
</tabstops>