Fix signal for ColorButton

This commit is contained in:
plc-user 2025-03-28 18:54:57 +01:00 committed by GitHub
parent 3913836137
commit 07a07a5719
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -170,7 +170,7 @@ void DynamicTextFieldEditor::setupWidget()
m_color_kpb->setObjectName(QString::fromUtf8("m_color_kpb"));
connect(m_color_kpb, &ColorButton::changed,
this, &DynamicTextFieldEditor::on_m_color_kpb_changed);
this, &DynamicTextFieldEditor::m_color_kpb_changed);
ui->m_main_grid_layout->addWidget(m_color_kpb, 6, 1, 1, 2);
}
@ -408,7 +408,7 @@ void DynamicTextFieldEditor::on_m_font_pb_clicked()
}
}
void DynamicTextFieldEditor::on_m_color_kpb_changed(const QColor &newColor) {
void DynamicTextFieldEditor::m_color_kpb_changed(QColor newColor) {
if (!newColor.isValid()) {
return;
}

View File

@ -64,7 +64,7 @@ class DynamicTextFieldEditor : public ElementItemEditor {
void on_m_alignment_pb_clicked();
void on_m_font_pb_clicked();
void on_m_color_kpb_changed(const QColor &newColor);
void m_color_kpb_changed(QColor newColor);
void on_m_keep_visual_rotation_cb_clicked();