X-Git-Url: http://git.maemo.org/git/?p=secretnotes;a=blobdiff_plain;f=src%2Fmainwindow.cpp;fp=src%2Fmainwindow.cpp;h=05e67a4a7b590d2e626b98f8992cbbd94a8f11d1;hp=8566b7359329c97b9a8881d1da719bd5b31c2d9b;hb=3b070035d68fdeb067c30ed8dd765c78658c301e;hpb=b420767be6c6ba849f7f7d5c8e4df77aa64ce65a
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 8566b73..05e67a4 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -16,6 +16,9 @@
* along with Secret Notes. If not, see .
*/
#include
+#ifdef Q_WS_MAEMO_5
+#include
+#endif /* Q_WS_MAEMO_5 */
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include
@@ -38,6 +41,13 @@ MainWindow::MainWindow(QWidget *parent) :
{
ui->setupUi(this);
+#ifdef Q_WS_MAEMO_5
+ QAbstractKineticScroller *scroller = ui->textEdit->property("kineticScroller")
+ .value();
+ if (scroller)
+ scroller->setEnabled(true);
+#endif /* Q_WS_MAEMO_5 */
+
resetAction = ui->menuOptions->addAction(tr("Reset secret notes"));
connect(resetAction, SIGNAL(triggered()), this, SLOT(on_actionReset_secret_notes_triggered()));
@@ -286,7 +296,7 @@ void MainWindow::on_actionReset_secret_notes_triggered()
if (QMessageBox::question(this, tr("Reset secret notes"),
tr("Do you want to reset Secret Notes?\n"
"This will destroy all contents!"),
- QMessageBox::Yes | QMessageBox::No) != QMessageBox::Yes) {
+ QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel) != QMessageBox::Yes) {
return;
}
if (password)