DigitalClock is a simple Qt-based application that functions as a digital clock with a 30-minute countdown timer. When the countdown finishes, it plays a sound for a specified duration or until clicked, at which point it restarts the counter to 30 minutes.
- Digital clock display
- 30-minute countdown timer
- Plays a sound when the countdown finishes
- Clickable clock to reset the timer
- Qt5 (Qt5 Widgets and Qt5 Multimedia modules)
- CMake
-
Clone the repository:
git clone https://github.com/dcorral/DigitalClock.git cd DigitalClock
-
Create a build directory and navigate to it:
mkdir build cd build
-
Run CMake to generate the Makefile:
cmake ..
-
Build the application:
make
-
Install the application (you might need superuser permissions):
sudo make install
After installation, you can run the DigitalClock application by typing:
DigitalClock
You can change the initial countdown time and the alarm duration by modifying the following variables in main.cpp
:
const int initialCountdownMinutes = 30; // Initial countdown time in minutes
const int alarmDurationSeconds = 300; // Alarm duration in seconds (5 minutes)
Rebuild and reinstall the application after making any changes to these variables.
This project is licensed under the MIT License.