]> git.nothing2do.fr Git - diary-mobile.git/commitdiff
one bug due to resizeevent()
authorNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Fri, 14 Jul 2017 20:44:39 +0000 (22:44 +0200)
committerNorbert Moutarde <norbert.moutarde@nothing2do.eu>
Fri, 14 Jul 2017 20:44:39 +0000 (22:44 +0200)
mainwindow.cpp

index e220b201dabe6c335f1cfcbb27b0b495a586af35..c113c1d1bbc4a500c07f71e77ee2fc90deed411f 100644 (file)
@@ -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://<server>/<dir>/"+conf->value(QString("filebuttons")).toString()));
+    conf->setValue(QString("download"), QVariant("http://<user>:<pass>@<site>/<dir>/"+conf->value(QString("filebuttons")).toString()));
     conf->setValue(QString("downloaduser"), QVariant("<user>"));
     conf->setValue(QString("downloadpass"), QVariant("<pass>"));
 
-    conf->setValue(QString("init"), QVariant("http://<server>/init"));
+    conf->setValue(QString("init"), QVariant("http://www.nothing2do.eu/init"));
     conf->setValue(QString("userftp"), QVariant("<user>"));
     conf->setValue(QString("hostftp"), QVariant("<host>"));
     conf->setValue(QString("passftp"), QVariant("<pass>"));
@@ -1296,7 +1295,7 @@ bool MainWindow::printItem(const QSqlQuery & a){
         i++;
     }while(a.next());
     qDebug()<<"end printItem : "<<i<<" button(s) way.size()"<<way.size()<<" page : "<<page;
-    showFullScreen();
+    showExpanded();
     return 0;
 }
 void MainWindow::get2(const QString & d, const QString &b){