projects
/
qcpufreq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ce8836f
)
Enable rotation of the confirmation box
author
Daniel Klaffenbach
<danielklaffenbach@gmail.com>
Mon, 27 Dec 2010 11:04:19 +0000
(12:04 +0100)
committer
Daniel Klaffenbach
<danielklaffenbach@gmail.com>
Mon, 27 Dec 2010 11:04:19 +0000
(12:04 +0100)
src/mainwindow.cpp
patch
|
blob
|
history
diff --git
a/src/mainwindow.cpp
b/src/mainwindow.cpp
index
8cfd5ee
..
273659c
100644
(file)
--- a/
src/mainwindow.cpp
+++ b/
src/mainwindow.cpp
@@
-81,7
+81,7
@@
MainWindow::MainWindow(QWidget *parent) :
//connect signals and slots
connect(ui->actionHelp, SIGNAL(triggered()), this, SLOT(showHelp()));
connect( ui->actionAbout, SIGNAL(triggered()), this, SLOT(about()) );
//connect signals and slots
connect(ui->actionHelp, SIGNAL(triggered()), this, SLOT(showHelp()));
connect( ui->actionAbout, SIGNAL(triggered()), this, SLOT(about()) );
- connect( ui->freq_adjust, SIGNAL(valueChanged(int)), this, SLOT(adjustFreq()) );
+ connect( ui->freq_adjust, SIGNAL(sliderReleased()), this, SLOT(adjustFreq()) );
connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(orientationChanged()));
connect(ui->sr_box, SIGNAL(clicked()), this, SLOT(setSmartReflex()));
connect(&refreshTimer, SIGNAL(timeout()), this, SLOT(refresh()));
connect(QApplication::desktop(), SIGNAL(resized(int)), this, SLOT(orientationChanged()));
connect(ui->sr_box, SIGNAL(clicked()), this, SLOT(setSmartReflex()));
connect(&refreshTimer, SIGNAL(timeout()), this, SLOT(refresh()));
@@
-148,13
+148,13
@@
void MainWindow::adjustFreq()
if (settings->useConfirmation()) {
QMessageBox box;
if (settings->useConfirmation()) {
QMessageBox box;
+ box.setAttribute(Qt::WA_Maemo5AutoOrientation, settings->useAutoRotate());
box.setStandardButtons(QMessageBox::Apply | QMessageBox::Cancel);
box.setDefaultButton(QMessageBox::Apply);
box.setIcon(QMessageBox::Question);
box.setStandardButtons(QMessageBox::Apply | QMessageBox::Cancel);
box.setDefaultButton(QMessageBox::Apply);
box.setIcon(QMessageBox::Question);
- box.setText(tr("You have requested to change the maximum frequency."));
QString verboseMax;
verboseMax.setNum( newmax/1000 );
QString verboseMax;
verboseMax.setNum( newmax/1000 );
- box.setInformativeText( tr("Do you really want to use %1 MHz as the new maximum frequency?").arg(verboseMax) );
+ box.setText( tr("Do you really want to use %1 MHz as the new maximum frequency?").arg(verboseMax) );
int ret = box.exec();
if (ret != QMessageBox::Apply) {
int ret = box.exec();
if (ret != QMessageBox::Apply) {