summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrius ┼átikonas <[email protected]>2017-04-21 20:25:32 +0100
committerAndrius ┼átikonas <[email protected]>2017-04-21 20:26:40 +0100
commitec114d259a4937134d550de36fe1f05e3b8d33d8 (patch)
treef9c1399bfb6d2d5dbfe2d2d7901e14ea595eb3ec
parente3939e4999affd18fd1bbe2704077e0503f5e5bb (diff)
Rename a slot to prevent automatic connection.
This fixes: QMetaObject::connectSlotsByName: No matching signal for on_boardSize_changed()
-rw-r--r--src/gui/widgets/setupwidget.cpp12
-rw-r--r--src/gui/widgets/setupwidget.h2
2 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/widgets/setupwidget.cpp b/src/gui/widgets/setupwidget.cpp
index b0507b2..76a624a 100644
--- a/src/gui/widgets/setupwidget.cpp
+++ b/src/gui/widgets/setupwidget.cpp
@@ -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);
diff --git a/src/gui/widgets/setupwidget.h b/src/gui/widgets/setupwidget.h
index c9b8851..1b73d9b 100644
--- a/src/gui/widgets/setupwidget.h
+++ b/src/gui/widgets/setupwidget.h
@@ -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);