X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=classes%2Fclockswidget.h;h=d7e2ba70f07a33b2a25ffbd6a3ef10770c00971d;hb=9efec171e3d8b4a2a662a29f57ee002ea8c4f594;hp=7872915c2aaeae3a28530a5f0c23fcd0eb3be3d4;hpb=a9dfe54ac273d09f371241315f824719f550260a;p=chessclock diff --git a/classes/clockswidget.h b/classes/clockswidget.h index 7872915..d7e2ba7 100644 --- a/classes/clockswidget.h +++ b/classes/clockswidget.h @@ -47,7 +47,8 @@ class ClocksWidget : public QWidget Q_OBJECT public: ClocksWidget(ChessClock* white, ChessClock* black, QWidget *parent = 0); - + ~ClocksWidget(); + bool isPlayStarted() { return (status_!=Welcome); } protected: void mouseReleaseEvent(QMouseEvent *event); @@ -82,7 +83,10 @@ protected: GameStatus status_; QTime delayTimer_; /*! To avoid double clicks */ - static int const CLICKDELAY = 500 ; /*! Click delay in msecs */ + int recentX; + int recentY; + + static int const CLICKDELAY = 1500 ; /*! Click delay in msecs */