Commit ec114d25 authored by Andrius Štikonas's avatar Andrius Štikonas

Rename a slot to prevent automatic connection.

This fixes:
QMetaObject::connectSlotsByName: No matching signal for on_boardSize_changed()
parent e3939e49
......@@ -45,11 +45,11 @@ SetupWidget::SetupWidget(Game *game, QWidget *parent)
connect(startButton, &QPushButton::clicked, this, &SetupWidget::startClicked);
connect(whiteIsComputerCheckBox, &QCheckBox::toggled, this, &SetupWidget::whiteIsComputer);
connect(blackIsComputerCheckBox, &QCheckBox::toggled, this, &SetupWidget::blackIsComputer);
connect(sizeSmall, &QRadioButton::clicked, this, &SetupWidget::on_boardSize_changed);
connect(sizeMedium, &QRadioButton::clicked, this, &SetupWidget::on_boardSize_changed);
connect(sizeBig, &QRadioButton::clicked, this, &SetupWidget::on_boardSize_changed);
connect(sizeOther, &QRadioButton::clicked, this, &SetupWidget::on_boardSize_changed);
connect(sizeOtherSpinBox, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &SetupWidget::on_boardSize_changed);
connect(sizeSmall, &QRadioButton::clicked, this, &SetupWidget::onBoardSizeChanged);
connect(sizeMedium, &QRadioButton::clicked, this, &SetupWidget::onBoardSizeChanged);
connect(sizeBig, &QRadioButton::clicked, this, &SetupWidget::onBoardSizeChanged);
connect(sizeOther, &QRadioButton::clicked, this, &SetupWidget::onBoardSizeChanged);
connect(sizeOtherSpinBox, static_cast<void (QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &SetupWidget::onBoardSizeChanged);
}
SetupWidget::~SetupWidget()
......@@ -242,7 +242,7 @@ void SetupWidget::on_startMoveSpinBox_valueChanged(int value)
}
}
void SetupWidget::on_boardSize_changed()
void SetupWidget::onBoardSizeChanged()
{
if (sizeOther->isChecked()) { // Custom size enabled
sizeOtherSpinBox->setEnabled(true);
......
......@@ -63,7 +63,7 @@ public slots:
private slots:
void on_startMoveSpinBox_valueChanged(int);
void on_boardSize_changed();
void onBoardSizeChanged();
void on_handicapSpinBox_valueChanged(int);
void whiteIsComputer(bool);
void blackIsComputer(bool);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment