Skip to content

Commit

Permalink
MashDesigner: Fix comboBox_type::activated
Browse files Browse the repository at this point in the history
This fixes the following warning, currently present when starting
brewtarget:

QObject::connect: No such slot MashDesigner::typeChanged(int) in
/home/jonte/bt/src/MashDesigner.cpp:65
QObject::connect:  (sender name:   'comboBox_type')
QObject::connect:  (receiver name: 'mashDesigner')
  • Loading branch information
jonte committed May 3, 2018
1 parent e5bbace commit d03107a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MashDesigner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ MashDesigner::MashDesigner(QWidget* parent) : QDialog(parent)
// Move to next step.
connect( pushButton_next, &QAbstractButton::clicked, this, &MashDesigner::proceed );
// Do correct calcs when the mash step type is selected.
connect( comboBox_type, SIGNAL(activated(int)), this, SLOT(typeChanged(int)) );
connect( comboBox_type, static_cast<void (QComboBox::*)(int)>(&QComboBox::activated), this, &MashDesigner::typeChanged );

// I still dislike this part. But I also need to "fix" the form
// connect( checkBox_batchSparge, SIGNAL(clicked()), this, SLOT(updateMaxAmt()) );
Expand Down

0 comments on commit d03107a

Please sign in to comment.