* along with Secret Notes. If not, see <http://www.gnu.org/licenses/>.
*/
#include <QDir>
+#ifdef Q_WS_MAEMO_5
+#include <QAbstractKineticScroller>
+#endif /* Q_WS_MAEMO_5 */
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <qmessagebox.h>
{
ui->setupUi(this);
+#ifdef Q_WS_MAEMO_5
+ QAbstractKineticScroller *scroller = ui->textEdit->property("kineticScroller")
+ .value<QAbstractKineticScroller *>();
+ 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()));
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)