AppUI: 给"认输"和"新局"两个按钮添加响应

This commit is contained in:
CalciteM Team 2019-08-27 13:53:14 +08:00
parent 082ad5391b
commit 9b8fa924a1
1 changed files with 9 additions and 1 deletions

View File

@ -188,6 +188,11 @@ void NineChessWindow::initialize()
connect(ui.actionGiveUp_G, SIGNAL(triggered()),
game, SLOT(giveUp()));
#ifdef MOBILE_APP_UI
connect(ui.pushButton_giveUp, SIGNAL(released()),
game, SLOT(giveUp()));
#endif
connect(ui.actionEngine1_T, SIGNAL(toggled(bool)),
game, SLOT(setEngine1(bool)));
@ -282,7 +287,10 @@ void NineChessWindow::initialize()
#ifdef MOBILE_APP_UI
connect(ui.pushButton_retractMove, &QPushButton::released,
this, &NineChessWindow::on_actionRowChange);
#endif
connect(ui.pushButton_newGame, &QPushButton::released,
this, &NineChessWindow::on_actionNew_N_triggered);
#endif /* MOBILE_APP_UI */
connect(ui.actionNext_F, &QAction::triggered,
this, &NineChessWindow::on_actionRowChange);