François Drouhard před 3 roky
rodič
revize
df279a0026
2 změnil soubory, kde provedl 13 přidání a 16 odebrání
  1. 12 15
      ChronoCheckMate.pro
  2. 1 1
      Chronometre.cpp

+ 12 - 15
ChronoCheckMate.pro

@@ -1,5 +1,5 @@
 ######################################################################
-# Automatically generated by qmake (3.1) Tue Nov 28 15:48:58 2017
+# Automatically generated by qmake (3.1) Fri May 14 17:00:36 2021
 ######################################################################
 
 TEMPLATE = app
@@ -9,26 +9,23 @@ QT += widgets
 QT += multimedia
 QT += gui
 
-# The following define makes your compiler warn you if you use any
-# feature of Qt which has been marked as deprecated (the exact warnings
-# depend on your compiler). Please consult the documentation of the
-# deprecated API in order to know how to port your code away from it.
-DEFINES += QT_DEPRECATED_WARNINGS
-
-# You can also make your code fail to compile if you use deprecated APIs.
+# You can make your code fail to compile if you use deprecated APIs.
 # In order to do so, uncomment the following line.
+# Please consult the documentation of the deprecated API in order to know
+# how to port your code away from it.
 # You can also select to disable deprecated APIs only up to a certain version of Qt.
 #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
 
 # Input
-HEADERS += Chronometre.h MaFenetre.h \
+HEADERS += Chronometre.h \
     Dialog.h \
+    MaFenetre.h \
     options.h
-SOURCES += Chronometre.cpp MaFenetre.cpp main.cpp \
+
+SOURCES += main.cpp \
+    Chronometre.cpp \
     Dialog.cpp \
+    MaFenetre.cpp \
     options.cpp
-
-RESOURCES += \
-    ressources.qrc
-
-FORMS +=
+    
+RESOURCES += ressources.qrc

+ 1 - 1
Chronometre.cpp

@@ -69,7 +69,7 @@ Chronometre::Chronometre (const QString & nom, Couleur unecouleur, QTime const&
 	
     timer = new QTimer  (this);
     timer->setInterval (INTERVAL);
-	QObject::connect (timer , SIGNAL (timeout() ) , this , SLOT (refresh()));
+	QObject::connect (timer , &QTimer::timeout , this , &Chronometre::refresh);
 }
 
 void Chronometre::modifierNomJoueur(QString const& joueur) {