author | schurig <schurig> | 2003-06-10 16:35:43 (UTC) |
---|---|---|
committer | schurig <schurig> | 2003-06-10 16:35:43 (UTC) |
commit | d2f78d2aba17a491739d10bd73f6fce033849537 (patch) (unidiff) | |
tree | 0d8e5683afaa6da476001e00fc6db2ebc5c1a0df /core | |
parent | 8ffea5d37080bd173d55a458296c1fc461a54d13 (diff) | |
download | opie-d2f78d2aba17a491739d10bd73f6fce033849537.zip opie-d2f78d2aba17a491739d10bd73f6fce033849537.tar.gz opie-d2f78d2aba17a491739d10bd73f6fce033849537.tar.bz2 |
renamed frequency access methods
-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 | |||
@@ -67,13 +67,13 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags ) | |||
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(); |
@@ -207,13 +207,13 @@ void LightSettings::setContrast ( int contr ) | |||
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 ); |