Gui: fix -Wclazy-connect-by-name

This commit is contained in:
wmayer
2023-04-03 16:40:22 +02:00
committed by wwmayer
parent ad29f1628a
commit 457fac38dd
24 changed files with 262 additions and 123 deletions

View File

@@ -44,8 +44,7 @@ TaskSelectLinkProperty::TaskSelectLinkProperty(const char *sFilter,App::Property
proxy = new QWidget(this);
ui = new Ui_TaskSelectLinkProperty();
ui->setupUi(proxy);
QMetaObject::connectSlotsByName(this);
setupConnections();
this->groupLayout()->addWidget(proxy);
Gui::Selection().Attach(this);
@@ -84,6 +83,18 @@ TaskSelectLinkProperty::~TaskSelectLinkProperty()
Gui::Selection().Detach(this);
}
void TaskSelectLinkProperty::setupConnections()
{
connect(ui->Remove, &QToolButton::clicked,
this, &TaskSelectLinkProperty::onRemoveClicked);
connect(ui->Add, &QToolButton::clicked,
this, &TaskSelectLinkProperty::onAddClicked);
connect(ui->Invert, &QToolButton::clicked,
this, &TaskSelectLinkProperty::onInvertClicked);
connect(ui->Help, &QToolButton::clicked,
this, &TaskSelectLinkProperty::onHelpClicked);
}
void TaskSelectLinkProperty::changeEvent(QEvent *e)
{
TaskBox::changeEvent(e);
@@ -222,19 +233,19 @@ void TaskSelectLinkProperty::OnChange(Gui::SelectionSingleton::SubjectType &rCal
}
/// @endcond
void TaskSelectLinkProperty::on_Remove_clicked(bool)
void TaskSelectLinkProperty::onRemoveClicked(bool)
{
}
void TaskSelectLinkProperty::on_Add_clicked(bool)
void TaskSelectLinkProperty::onAddClicked(bool)
{
}
void TaskSelectLinkProperty::on_Invert_clicked(bool)
void TaskSelectLinkProperty::onInvertClicked(bool)
{
}
void TaskSelectLinkProperty::on_Help_clicked(bool)
void TaskSelectLinkProperty::onHelpClicked(bool)
{
}