From: Norbert Moutarde Date: Tue, 29 Apr 2014 20:33:11 +0000 (+0200) Subject: added keyvolumeup and ...down to keyrelease event X-Git-Url: https://git.nothing2do.fr/?a=commitdiff_plain;h=f7ae06ae5e4a20b20cc563b03e40b60e05f58220;p=diary-mobile.git added keyvolumeup and ...down to keyrelease event --- diff --git a/mainwindow.cpp b/mainwindow.cpp index 798774b..fe3217d 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -274,8 +274,8 @@ void MainWindow::firstrun(){ conf->setValue(QString("download"), QVariant("http://www.nothing2do.eu/ui.sql")); conf->setValue(QString("uploadRAW"), QVariant("ftp://:@/raw")); conf->setValue(QString("uploadUi"), QVariant("ftp://:@/ui.sql")); - conf->setValue(QString("restore"), QVariant("http://www.abc.de/db")); conf->setValue(QString("start"), QVariant("begin")); + conf->setValue(QString("restore"), QVariant("http://www.abc.de/db")); conf->setValue(QString("db"), QVariant("/data/data/eu.nothing2do.diarymobile/files/db")); conf->setValue(QString("selectbuttons"), QVariant("select keyword,label,action from ui order by keyword;")); conf->setValue(QString("selectraw"), QVariant("select date,texte from raw;")); @@ -467,6 +467,12 @@ void MainWindow::keyReleaseEvent(QKeyEvent *event) back(); //accepted=false;// close the app next time when the user press back button } + else if(k==Qt::Key_VolumeDown){ + action(conf->value(QString("volumdown")).toString()); + } + else if(k==Qt::Key_VolumeUp){ + action(conf->value(QString("volumup")).toString()); + } //Qt::Key_VolumeDown Qt::Key_VolumeUp }