Added game pausing when the application is minimized
[chessclock] / chessclockwindow.h
index d17d979..4fe01c5 100644 (file)
@@ -49,6 +49,8 @@ public slots:
 
 protected:
     void initTimeControls();
+    /*! Pauses the game if the application main window is not active e.g. the app is minimized*/
+    bool eventFilter(QObject *obj, QEvent *event);
 
 protected:
     ClocksWidget*   clocks_;