AppUI: 给"认输"和"新局"两个按钮添加响应
This commit is contained in:
parent
082ad5391b
commit
9b8fa924a1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue