projects
/
qcpufreq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2ffeff9
)
Only display overclocking option on power kernels
author
Daniel Klaffenbach
<danielklaffenbach@gmail.com>
Sat, 25 Sep 2010 14:33:12 +0000
(16:33 +0200)
committer
Daniel Klaffenbach
<danielklaffenbach@gmail.com>
Sat, 25 Sep 2010 14:33:12 +0000
(16:33 +0200)
src/mainwindow.cpp
patch
|
blob
|
history
diff --git
a/src/mainwindow.cpp
b/src/mainwindow.cpp
index
e904561
..
44b9a7e
100644
(file)
--- a/
src/mainwindow.cpp
+++ b/
src/mainwindow.cpp
@@
-81,6
+81,11
@@
MainWindow::MainWindow(QWidget *parent) :
connect(&refreshTimer, SIGNAL(timeout()), this, SLOT(refresh()));
connect(ui->actionOverclocking, SIGNAL(toggled(bool)), this, SLOT(setOverclocking()));
connect(&refreshTimer, SIGNAL(timeout()), this, SLOT(refresh()));
connect(ui->actionOverclocking, SIGNAL(toggled(bool)), this, SLOT(setOverclocking()));
+ //disable overclocking button on vanilla kernels
+ if ( getScalingFreq(0) <= 600000 ) {
+ ui->actionOverclocking->setDisabled(true);
+ }
+
}
MainWindow::~MainWindow()
}
MainWindow::~MainWindow()
@@
-116,7
+121,7
@@
void MainWindow::adjustFreq()
//check for overclocking
#if defined(Q_WS_MAEMO_5)
if (this->allowOverclocking == false && newmax > 600000) {
//check for overclocking
#if defined(Q_WS_MAEMO_5)
if (this->allowOverclocking == false && newmax > 600000) {
- QMaemo5InformationBox::information(this, tr( "You need to enable overclocking for setting frequencies above 600MHz!"), 0);
+ QMaemo5InformationBox::information(this, tr( "You need to enable overclocking in QCPUFreq's menu for setting frequencies above 600MHz!"), 0);
refresh();
return;
}
refresh();
return;
}