Ver Fonte

Jolis connect

François Drouhard há 3 anos atrás
pai
commit
1404700b54
1 ficheiros alterados com 9 adições e 9 exclusões
  1. 9 9
      MaFenetre.cpp

+ 9 - 9
MaFenetre.cpp

@@ -104,15 +104,15 @@ MaFenetre::MaFenetre() :
     init();
 
 	///////////////////////////// connections ///////////////////////////
-    QObject::connect (boutonDemarrer , SIGNAL(clicked () ) , this , SLOT(demarrer () ));
-    QObject::connect (boutonInverser , SIGNAL(clicked()) , this , SLOT(inverser()));
-    QObject::connect (boutonChangerCouleur, SIGNAL(clicked() ), this, SLOT(changerCouleur()));
-    QObject::connect (boutonArreter , SIGNAL(clicked()), this, SLOT (arreter()));
-    QObject::connect (actionNouveau, SIGNAL(triggered()) , this , SLOT(init()));
-    QObject::connect (actionOptions , SIGNAL(triggered()), this, SLOT(lancerDialogueOptions()));
-    QObject::connect (actionQuitter , SIGNAL(triggered()) , qApp , SLOT(quit()));
-    QObject::connect (chrono1, SIGNAL(fin()), this, SLOT(afficheGagnant()));
-    QObject::connect (chrono2, SIGNAL(fin()), this, SLOT(afficheGagnant()));
+    QObject::connect (boutonDemarrer , &QPushButton::clicked , this , &MaFenetre::demarrer);
+    QObject::connect (boutonInverser , &QPushButton::clicked , this , &MaFenetre::inverser);
+    QObject::connect (boutonChangerCouleur, &QPushButton::clicked , this, &MaFenetre::changerCouleur);
+    QObject::connect (boutonArreter , &QPushButton::clicked , this, &MaFenetre::arreter);
+    QObject::connect (actionNouveau, &QAction::triggered , this , &MaFenetre::init);
+    QObject::connect (actionOptions , &QAction::triggered , this, &MaFenetre::lancerDialogueOptions);
+    QObject::connect (actionQuitter , &QAction::triggered , qApp , &QApplication::quit);
+    QObject::connect (chrono1, &Chronometre::fin, this, &MaFenetre::afficheGagnant);
+    QObject::connect (chrono2, &Chronometre::fin, this, &MaFenetre::afficheGagnant);
 
 }