{
qDebug()<<"begin of MainWindows";
conf=new QSettings(QString("FwF"), QString("diary-mobile"), this);
- orientation=0;
+ orienta=0;
if(conf->allKeys().size()==0){
qDebug()<<"first";
firstrun();
};
statusBar()->addPermanentWidget(label);
menuBar()->setVisible(conf->value(QString("menu")).toBool());
- //start();
+ start();
}
void MainWindow::start(){
QString a=conf->value(QString("currenttype")).toString();
exec(QList<QString>({"delete from raw;"}));
}
void MainWindow::get(const QString & a){
- const QString b=QInputDialog::getText(this, trUtf8("get", "title to ask keyword fot get"), trUtf8("Enter the keyword : ", "ask keyword to get buttons"));
+ const QString b=QInputDialog::getText(this, trUtf8("get", "title to ask keyword to get"), trUtf8("Enter the keyword : ", "ask keyword to get buttons"));
get(a, b);
}
void MainWindow::insert(const QString & type, const QString & keyword, const QString & label, const QString & action){
{
QSize size = event->size();
bool isLandscape = size.width() > size.height();
- if (isLandscape!=orientation){
+ if (isLandscape!=orienta){
size.transpose();
const int a=conf->value(QString("maxcolumn")).toInt();
conf->setValue(QString("maxcolumn"), conf->value(QString("maxline")).toInt());
conf->setValue(QString("maxline"), a);
- orientation=isLandscape;
+ orienta=isLandscape;
flush();
if(lastprint[0]=='-')action(lastprint);
else action('-'+lastprint);