Diffstat (limited to 'core/settings/light-and-power/light.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/settings/light-and-power/light.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp index 68c2929..eda0c1f 100644 --- a/core/settings/light-and-power/light.cpp +++ b/core/settings/light-and-power/light.cpp | |||
@@ -61,25 +61,25 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) | |||
61 | CalibrateLightSensor-> hide ( ); | 61 | CalibrateLightSensor-> hide ( ); |
62 | auto_brightness_ac-> hide ( ); | 62 | auto_brightness_ac-> hide ( ); |
63 | CalibrateLightSensor_ac-> hide ( ); | 63 | CalibrateLightSensor_ac-> hide ( ); |
64 | } | 64 | } |
65 | if (m_cres) { | 65 | if (m_cres) { |
66 | GroupLight->setTitle(tr("Backlight && Contrast")); | 66 | GroupLight->setTitle(tr("Backlight && Contrast")); |
67 | GroupLight_ac->setTitle(GroupLight->title()); | 67 | GroupLight_ac->setTitle(GroupLight->title()); |
68 | } else { | 68 | } else { |
69 | contrast->hide(); | 69 | contrast->hide(); |
70 | contrast_ac->hide(); | 70 | contrast_ac->hide(); |
71 | } | 71 | } |
72 | 72 | ||
73 | QStrList freq = ODevice::inst()->cpuFrequencies(); | 73 | QStrList freq = ODevice::inst()->allowedCpuFrequencies(); |
74 | if ( freq.count() ) { | 74 | if ( freq.count() ) { |
75 | frequency->insertStrList( freq ); | 75 | frequency->insertStrList( freq ); |
76 | frequency_ac->insertStrList( freq ); | 76 | frequency_ac->insertStrList( freq ); |
77 | } else { | 77 | } else { |
78 | frequency->hide(); | 78 | frequency->hide(); |
79 | frequency_ac->hide(); | 79 | frequency_ac->hide(); |
80 | } | 80 | } |
81 | 81 | ||
82 | Config config ( "apm" ); | 82 | Config config ( "apm" ); |
83 | config. setGroup ( "Battery" ); | 83 | config. setGroup ( "Battery" ); |
84 | 84 | ||
85 | // battery spinboxes | 85 | // battery spinboxes |
@@ -201,25 +201,25 @@ void LightSettings::setBacklight ( int bright ) | |||
201 | } | 201 | } |
202 | 202 | ||
203 | void LightSettings::setContrast ( int contr ) | 203 | void LightSettings::setContrast ( int contr ) |
204 | { | 204 | { |
205 | if (contr == -1) contr = m_oldcontrast; | 205 | if (contr == -1) contr = m_oldcontrast; |
206 | 206 | ||
207 | ODevice::inst ( )-> setDisplayContrast(contr); | 207 | ODevice::inst ( )-> setDisplayContrast(contr); |
208 | } | 208 | } |
209 | 209 | ||
210 | void LightSettings::setFrequency ( int index ) | 210 | void LightSettings::setFrequency ( int index ) |
211 | { | 211 | { |
212 | qWarning("LightSettings::setFrequency(%d)", index); | 212 | qWarning("LightSettings::setFrequency(%d)", index); |
213 | ODevice::inst ( )-> setCpuFrequency(index); | 213 | ODevice::inst ( )-> setCurrentCpuFrequency(index); |
214 | } | 214 | } |
215 | 215 | ||
216 | void LightSettings::resetBacklight ( ) | 216 | void LightSettings::resetBacklight ( ) |
217 | { | 217 | { |
218 | setBacklight ( -1 ); | 218 | setBacklight ( -1 ); |
219 | setContrast ( -1 ); | 219 | setContrast ( -1 ); |
220 | } | 220 | } |
221 | 221 | ||
222 | void LightSettings::accept ( ) | 222 | void LightSettings::accept ( ) |
223 | { | 223 | { |
224 | Config config ( "apm" ); | 224 | Config config ( "apm" ); |
225 | 225 | ||