From: Norbert Moutarde Date: Fri, 14 Jul 2017 20:44:39 +0000 (+0200) Subject: one bug due to resizeevent() X-Git-Url: https://git.nothing2do.fr/?a=commitdiff_plain;h=6b05e7742514b702253e5fcf7908d6fc4fa757c9;p=diary-mobile.git one bug due to resizeevent() --- diff --git a/mainwindow.cpp b/mainwindow.cpp index e220b20..c113c1d 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -71,8 +71,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) setCentralWidget(screen); createMenuBar(); connectDB(); - screen->showFullScreen(); - resizeEvent(); + showExpanded(); if((conf->value(QString("first")).toInt()==1)){ qDebug()<<"second"; bool ok; @@ -641,11 +640,11 @@ void MainWindow::firstrun(){ conf->setValue(QString("buttonsbefore"), QVariant("background-color: red;")); conf->setValue(QString("buttonsafter"), QVariant("background-color: blue;")); conf->setValue(QString("menu"), QVariant(1)); - conf->setValue(QString("download"), QVariant("http:////"+conf->value(QString("filebuttons")).toString())); + conf->setValue(QString("download"), QVariant("http://:@//"+conf->value(QString("filebuttons")).toString())); conf->setValue(QString("downloaduser"), QVariant("")); conf->setValue(QString("downloadpass"), QVariant("")); - conf->setValue(QString("init"), QVariant("http:///init")); + conf->setValue(QString("init"), QVariant("http://www.nothing2do.eu/init")); conf->setValue(QString("userftp"), QVariant("")); conf->setValue(QString("hostftp"), QVariant("")); conf->setValue(QString("passftp"), QVariant("")); @@ -1296,7 +1295,7 @@ bool MainWindow::printItem(const QSqlQuery & a){ i++; }while(a.next()); qDebug()<<"end printItem : "<