123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
-
- #ifndef DEF_CHRONOMETRE
- #define DEF_CHRONOMETRE
-
- #include <QGroupBox>
- class QLabel;
- class QHBoxLayout;
- class QTimer;
- class QString;
- class Chronometre : public QGroupBox {
-
- Q_OBJECT
-
- public:
- Chronometre (const QString & nom , QWidget * parent);
- int getHeure ();
- int getMinute ();
- int getSeconde ();
- int getCentieme ();
- void start ();
- void stop ();
- void affichage ();
- void reinit ();
- void basculer ();
- QString qString (int number);
-
- private slots:
- void refresh ();
-
- private:
- int heure;
- int minute;
- int seconde;
- int centieme;
- QTimer *timer;
- QHBoxLayout *ecranLayout;
- QLabel *ecranHeure;
- QLabel *ecranMinute;
- QLabel *ecranSeconde;
- QLabel *ecranCentieme;
- };
- #endif
|