Skip to content

Update#1

Open
StupidBh wants to merge 17 commits intowozouri:mainfrom
StupidBh:main
Open

Update#1
StupidBh wants to merge 17 commits intowozouri:mainfrom
StupidBh:main

Conversation

@StupidBh
Copy link
Copy Markdown

1、修改打卡时的上班时间默认为当前时间,即点击时的时间;离开公司的时间默认为 21:01
2、代码风格配置

在 `AttendanceMainWindow::updateMonthlyStatistics()` 函数中,重构了平均加班时间的计算方式,使用变量存储计算结果,并添加了缺加班时间的判断和信息。同时,调整了加班时间的描述,使其更符合中文表达习惯,确保字符串格式的一致性。
在 `AttendanceMainWindow::updateMonthlyStatistics()` 方法中,使用 `std::format` 替换原有的加班时间统计方式,增加缺加班时间的计算,提升代码清晰度和可维护性。

修正 `CustomCalendarWidget` 构造函数和 `showContextMenu()` 方法中的上下文菜单显示位置偏移,确保菜单在点击位置正确显示,提升用户体验。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant