Index: sources/MainTimer.h =================================================================== diff -u -r00d9bb06ec2bad14f6dc2db678b750c244f694ef -rc503f43840024e18650c1ac558448dd0f3b70427 --- sources/MainTimer.h (.../MainTimer.h) (revision 00d9bb06ec2bad14f6dc2db678b750c244f694ef) +++ sources/MainTimer.h (.../MainTimer.h) (revision c503f43840024e18650c1ac558448dd0f3b70427) @@ -5,7 +5,7 @@ * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * - * \file maintimer.h + * \file MainTimer.h * \author (last) Behrouz NematiPour * \date (last) 15-Jan-2020 * \author (original) Behrouz NematiPour @@ -18,7 +18,7 @@ #include // Project -#include "main.h" +#include "main.h" // Doxygen : don't remove // Define #define _MainTimer MainTimer::I() @@ -31,10 +31,11 @@ { Q_OBJECT + // Singleton + SINGLETON(MainTimer) + static const int _interval = 1000; //ms -// Singleton -SINGLETON(MainTimer); public: bool init(); void quit(); @@ -46,5 +47,5 @@ void didDateChange(); protected: - void timerEvent(QTimerEvent *) override; + void timerEvent(QTimerEvent *) override; };