Skip to content

Commit

Permalink
Merge branch 'dev' into main
Browse files Browse the repository at this point in the history
* The program now has new icons from Google's Material Icons

* The program now switches to a 5-minute break timer when a task is completed, in accordance with what the pomodoro technique requires
  • Loading branch information
nsh07 committed Dec 28, 2022
2 parents b975589 + e6988e1 commit d5758b1
Show file tree
Hide file tree
Showing 30 changed files with 88 additions and 69 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.5)

project(pomodoro VERSION 0.3 LANGUAGES CXX)
project(pomodoro VERSION 0.4 LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

Expand Down
1 change: 1 addition & 0 deletions icons/add_task-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/add_task.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/delete-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/delete.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions icons/edit-delete-symbolic-light.svg

This file was deleted.

4 changes: 0 additions & 4 deletions icons/edit-delete-symbolic.svg

This file was deleted.

3 changes: 0 additions & 3 deletions icons/list-add-symbolic-light.svg

This file was deleted.

3 changes: 0 additions & 3 deletions icons/list-add-symbolic.svg

This file was deleted.

1 change: 1 addition & 0 deletions icons/local_cafe-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/local_cafe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions icons/media-playback-start-symbolic-light.svg

This file was deleted.

3 changes: 0 additions & 3 deletions icons/media-playback-start-symbolic.svg

This file was deleted.

3 changes: 0 additions & 3 deletions icons/media-playback-stop-symbolic-light.svg

This file was deleted.

3 changes: 0 additions & 3 deletions icons/media-playback-stop-symbolic.svg

This file was deleted.

1 change: 1 addition & 0 deletions icons/pause-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/pause.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/pending_actions-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/pending_actions.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/play_arrow-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/play_arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions icons/preferences-system-time-symbolic-light.svg

This file was deleted.

3 changes: 0 additions & 3 deletions icons/preferences-system-time-symbolic.svg

This file was deleted.

1 change: 1 addition & 0 deletions icons/restart_alt-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/restart_alt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions icons/system-restart-symbolic-light.svg

This file was deleted.

3 changes: 0 additions & 3 deletions icons/system-restart-symbolic.svg
Diff not rendered.
6 changes: 6 additions & 0 deletions include/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ class MainWindow : public QMainWindow
void remTask(int index=3);
void remTask(QLabel *lbl);
void subTime();
void subBreakTime();
void resetTime();

private:
void startBreak();
void endBreak();

QScrollArea *scrAr;
QWidget *base;
QTabWidget *tabWid;
Expand All @@ -40,6 +44,8 @@ class MainWindow : public QMainWindow
QString iconSuffix;

int time;
int breakTime;
QLabel *breakTimeLbl;
CustomTimer *timer;
QFont timerFont;
QFont taskFont;
Expand Down
26 changes: 14 additions & 12 deletions resources.qrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
<RCC>
<qresource prefix="/">
<file>icons/media-playback-start-symbolic.svg</file>
<file>icons/media-playback-start-symbolic-light.svg</file>
<file>icons/media-playback-stop-symbolic.svg</file>
<file>icons/media-playback-stop-symbolic-light.svg</file>
<file>icons/preferences-system-time-symbolic.svg</file>
<file>icons/preferences-system-time-symbolic-light.svg</file>
<file>icons/system-restart-symbolic.svg</file>
<file>icons/system-restart-symbolic-light.svg</file>
<file>icons/list-add-symbolic.svg</file>
<file>icons/list-add-symbolic-light.svg</file>
<file>icons/edit-delete-symbolic.svg</file>
<file>icons/edit-delete-symbolic-light.svg</file>
<file>icons/play_arrow.svg</file>
<file>icons/play_arrow-light.svg</file>
<file>icons/pause.svg</file>
<file>icons/pause-light.svg</file>
<file>icons/pending_actions.svg</file>
<file>icons/pending_actions-light.svg</file>
<file>icons/restart_alt.svg</file>
<file>icons/restart_alt-light.svg</file>
<file>icons/add_task.svg</file>
<file>icons/add_task-light.svg</file>
<file>icons/delete.svg</file>
<file>icons/delete-light.svg</file>
<file>icons/local_cafe.svg</file>
<file>icons/local_cafe-light.svg</file>
</qresource>
</RCC>
Loading

0 comments on commit d5758b1

Please sign in to comment.