int t=grid->count();
flush();
- //int max=conf->value(QString("maxcolumn")).toInt()*conf->value(QString("maxline")).toInt();
+ int max=conf->value(QString("maxcolumn")).toInt()*conf->value(QString("maxline")).toInt();
if(!page)tmp=q->seek(0);
- else tmp=q->seek(-t,true);
+ else tmp=q->seek(-t-max,true);
if(deb)QMessageBox::information(this, trUtf8("result", "box title to debug prevpage"), int(tmp));
printItem();
}
if(deb)QMessageBox::information(this, QString("val"), QString("val.size()=="+valeur->size()));
}
+ else if(b[0]==QString("add")){
+ addDB(c);
+ }
else{
get(conf->value(QString("currenttype")).toString(),a);
//a="";
else tmpaction=QInputDialog::getText(this, trUtf8("action", "Title of box where ask for button's action"), trUtf8("new action", "question to get new button's action"), QLineEdit::Normal, action, &ok);
if(!ok)return;
- if((tmpkeyword=="")||(tmplabel=="")||(tmpaction=="")){
+ if((tmpkeyword=="del")||(tmplabel=="del")||(tmpaction=="del")){
remove(a, keyword, label, action);
if(deb)QMessageBox::information(this, trUtf8("EditDB", "title of box to say a button was deleted"), trUtf8("button was deleted", "text to say button was deleted"));
return;