projects
/
qcpufreq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af46faa
)
Added missing #ifdef to fix non-Maemo compilation
author
Daniel Klaffenbach
<danielklaffenbach@gmail.com>
Mon, 27 Dec 2010 11:55:51 +0000
(12:55 +0100)
committer
Daniel Klaffenbach
<danielklaffenbach@gmail.com>
Mon, 27 Dec 2010 11:55:51 +0000
(12:55 +0100)
src/mainwindow.cpp
patch
|
blob
|
history
diff --git
a/src/mainwindow.cpp
b/src/mainwindow.cpp
index
0b42260
..
b513ca8
100644
(file)
--- a/
src/mainwindow.cpp
+++ b/
src/mainwindow.cpp
@@
-159,7
+159,9
@@
void MainWindow::adjustFreq()
if (settings->useConfirmation()) {
QMessageBox box;
- box.setAttribute(Qt::WA_Maemo5AutoOrientation, settings->useAutoRotate());
+ #if defined(Q_WS_MAEMO_5)
+ box.setAttribute(Qt::WA_Maemo5AutoOrientation, settings->useAutoRotate());
+ #endif
box.setStandardButtons(QMessageBox::Apply | QMessageBox::Cancel);
box.setDefaultButton(QMessageBox::Apply);
box.setIcon(QMessageBox::Question);