123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
-
- #ifndef DEF_CHRONOMETRE
- #define DEF_CHRONOMETRE
-
- #include <QGroupBox>
- #include <QTime>
- class QLabel;
- class QHBoxLayout;
- class QTimer;
- class QString;
- #define INTERVAL 1
- class Chronometre : public QGroupBox {
-
- Q_OBJECT
-
- public:
- Chronometre (const QString & nom , QTime const& tempsDepart, QWidget * parent);
- void start ();
- void stop ();
- void affichage ();
- void reinit ();
- void basculer ();
- void modifierNomJoueur (QString joueur);
- void definirTemps (QTime const& tempsDepart);
- QString operator+=(Chronometre const& joueur) const;
- signals:
- void fin();
- private slots:
- void refresh ();
-
- private:
- QTime temps;
- QTime msTempsDepart;
- QTimer *timer;
- QHBoxLayout *ecranLayout;
- QLabel *ecranTemps;
- };
- #endif
|