<!-- Splash screen -->
</activity>
</application>
- <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="21"/>
+ <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="23"/>
<supports-screens android:largeScreens="true" android:normalScreens="true" android:anyDensity="true" android:smallScreens="true"/>
<!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.
setCentralWidget(screen);
createMenuBar();
connectDB();
- showFullScreen();
+ screen->showFullScreen();
+ resizeEvent();
if((conf->value(QString("first")).toInt()==1)){
qDebug()<<"second";
bool ok;
}
void MainWindow::keyReleaseEvent(QKeyEvent *event)
{
- static bool accepted=false;
+ static bool accepted=true;
int k=event->key();
QString tmp;
qDebug()<<"key released="<<k;
if(deb)QMessageBox::information(this, trUtf8("key released", "box title to debug keyReleaseEvent"), "key : "+tmp);
if (k==Qt::Key_Menu){
- const QString a=conf->value(QString("actionmenu")).toString();
- if(a!="")accepted=true;
+ const QString a=conf->value(QString("actionmenu"), QString("")).toString();
+ if(a=="")accepted++;
if(a!=lastprint){
beforekey=lastprint;
action(a);
};
}else if(k==Qt::Key_Back){
const QString a=conf->value(QString("menuback"), QString("")).toString();
- if(a!="")accepted=true;
+ if(a!="")accepted++;
if(a!=lastprint){
beforekey=lastprint;
action(a);
};
}else if(k==Qt::Key_VolumeDown){
qDebug()<<"keyvolumdown";
- const QString a=conf->value(QString("volumdown")).toString();
- if(a!="")accepted=true;
+ const QString a=conf->value(QString("volumdown"), QString("")).toString();
+ if(a!="")accepted++;
if(a!=lastprint){
beforekey=lastprint;
action(a);
action(beforekey);
};
}else if(k==Qt::Key_VolumeUp){
- const QString a=conf->value(QString("volumup")).toString();
- if(a!="")accepted=true;
+ const QString a=conf->value(QString("volumup"), QString("")).toString();
+ if(a!="")accepted++;
if(a!=lastprint){
beforekey=lastprint;
action(a);