diff options
Diffstat (limited to 'src/kpowersave.cpp')
-rw-r--r-- | src/kpowersave.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/kpowersave.cpp b/src/kpowersave.cpp index b73420e..d6d98c2 100644 --- a/src/kpowersave.cpp +++ b/src/kpowersave.cpp @@ -196,9 +196,9 @@ void kpowersave::initMenu() { speed_menu->insertItem(i18n("Dynamic"), DYNAMIC); speed_menu->insertItem(i18n("Powersave"), POWERSAVE); - CPUFRETQ_SEPARATOR_MENU_ID = contextMenu()->insertSeparator(); + CPUFREQ_SEPARATOR_MENU_ID = contextMenu()->insertSeparator(); - CPUFRETQ_MENU_ID = contextMenu()->insertItem(i18n("Set CPU Frequency Policy"), speed_menu); + CPUFREQ_MENU_ID = contextMenu()->insertItem(i18n("Set CPU Frequency Policy"), speed_menu); connect(speed_menu, TQT_SIGNAL(activated(int)), this, TQT_SLOT(do_setSpeedPolicy(int))); connect(hwinfo, TQT_SIGNAL(currentCPUFreqPolicyChanged()), this, TQT_SLOT(updateCPUFreqMenu())); @@ -1299,7 +1299,7 @@ void kpowersave::_quit (){ } /*! - * \b TQT_SLOT called if the user select a 'CPU Frequency Policy' from the menu ( \ref CPUFRETQ_MENU_ID ). + * \b TQT_SLOT called if the user select a 'CPU Frequency Policy' from the menu ( \ref CPUFREQ_MENU_ID ). */ void kpowersave::do_setSpeedPolicy(int menu_id){ if (trace) kdDebug() << funcinfo << "IN: " << "menu_id/set policy to: " << menu_id << endl; @@ -1452,9 +1452,9 @@ void kpowersave::updateCPUFreqMenu(){ if (hwinfo->supportCPUFreq() && hwinfo->isOnline() && hwinfo->isCpuFreqAllowed()) { /* set CPU frequency menu entries *********/ /* speed menu has id 3 in context menu */ - contextMenu()->setItemVisible(CPUFRETQ_MENU_ID, true); - contextMenu()->setItemEnabled(CPUFRETQ_MENU_ID, true); - contextMenu()->setItemVisible(CPUFRETQ_SEPARATOR_MENU_ID, true); + contextMenu()->setItemVisible(CPUFREQ_MENU_ID, true); + contextMenu()->setItemEnabled(CPUFREQ_MENU_ID, true); + contextMenu()->setItemVisible(CPUFREQ_SEPARATOR_MENU_ID, true); switch (hwinfo->getCurrentCPUFreqPolicy()){ case PERFORMANCE: @@ -1478,13 +1478,13 @@ void kpowersave::updateCPUFreqMenu(){ if (!speed_menu) { return ; } else if (hwinfo->supportCPUFreq() && (hwinfo->isCpuFreqAllowed() != 1)) { - contextMenu()->setItemEnabled(CPUFRETQ_MENU_ID, false); - contextMenu()->setItemVisible(CPUFRETQ_SEPARATOR_MENU_ID, true); + contextMenu()->setItemEnabled(CPUFREQ_MENU_ID, false); + contextMenu()->setItemVisible(CPUFREQ_SEPARATOR_MENU_ID, true); } else{ /* there were CPU freq policies, but they are not accessible any more */ /* delete speed_menu */ - contextMenu()->setItemVisible(CPUFRETQ_MENU_ID, false); - contextMenu()->setItemVisible(CPUFRETQ_SEPARATOR_MENU_ID, false); + contextMenu()->setItemVisible(CPUFREQ_MENU_ID, false); + contextMenu()->setItemVisible(CPUFREQ_SEPARATOR_MENU_ID, false); } } @@ -2088,13 +2088,13 @@ void kpowersave::handleActionCall ( action action, int value , bool checkAC, boo case BRIGHTNESS: hwinfo->setBrightness( -1, value ); break; - case CPUFRETQ_POWERSAVE: + case CPUFREQ_POWERSAVE: hwinfo->setCPUFreq( POWERSAVE ); break; - case CPUFRETQ_DYNAMIC: + case CPUFREQ_DYNAMIC: hwinfo->setCPUFreq( DYNAMIC, settings->cpuFreqDynamicPerformance ); break; - case CPUFRETQ_PERFORMANCE: + case CPUFREQ_PERFORMANCE: hwinfo->setCPUFreq( PERFORMANCE ); break; case SWITCH_SCHEME: // not supported atm |