mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Fix Qt5 Slot/Signals for QCheckBoxes (#5201)
This commit is contained in:
parent
f2b0fa164e
commit
c6bfc8b8ea
4 changed files with 53 additions and 65 deletions
|
|
@ -81,8 +81,7 @@ void DlgCreateGame::sharedCtor()
|
|||
|
||||
spectatorsAllowedCheckBox = new QCheckBox(tr("&Spectators can watch"));
|
||||
spectatorsAllowedCheckBox->setChecked(true);
|
||||
connect(spectatorsAllowedCheckBox, SIGNAL(QT_STATE_CHANGED(QT_STATE_CHANGED_T)), this,
|
||||
SLOT(spectatorsAllowedChanged(QT_STATE_CHANGED_T)));
|
||||
connect(spectatorsAllowedCheckBox, &QCheckBox::QT_STATE_CHANGED, this, &DlgCreateGame::spectatorsAllowedChanged);
|
||||
spectatorsNeedPasswordCheckBox = new QCheckBox(tr("Spectators &need a password to watch"));
|
||||
spectatorsCanTalkCheckBox = new QCheckBox(tr("Spectators can &chat"));
|
||||
spectatorsSeeEverythingCheckBox = new QCheckBox(tr("Spectators can see &hands"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue