Open
Conversation
离开公司的时间默认为 21:01
在 `AttendanceMainWindow::updateMonthlyStatistics()` 函数中,重构了平均加班时间的计算方式,使用变量存储计算结果,并添加了缺加班时间的判断和信息。同时,调整了加班时间的描述,使其更符合中文表达习惯,确保字符串格式的一致性。
在 `AttendanceMainWindow::updateMonthlyStatistics()` 方法中,使用 `std::format` 替换原有的加班时间统计方式,增加缺加班时间的计算,提升代码清晰度和可维护性。 修正 `CustomCalendarWidget` 构造函数和 `showContextMenu()` 方法中的上下文菜单显示位置偏移,确保菜单在点击位置正确显示,提升用户体验。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1、修改打卡时的上班时间默认为当前时间,即点击时的时间;离开公司的时间默认为 21:01
2、代码风格配置