| 1098 | } |
| 1099 | |
| 1100 | void ChessBoard::on_pushButton_start_clicked() |
| 1101 | { |
| 1102 | if(!m_bIsStart) //尚未开始 开始计时 |
| 1103 | { |
| 1104 | startGameTimer(); |
| 1105 | m_bTimerAutoStarted = true; |
| 1106 | } |
| 1107 | else //已经开始,暂停 |
| 1108 | { |
| 1109 | pauseGameTimer(); |
| 1110 | } |
| 1111 | } |
| 1112 | |
| 1113 | void ChessBoard::on_pushButton_reset_clicked() |
| 1114 | { |
nothing calls this directly
no outgoing calls
no test coverage detected