Fix signal for KColorButton

This commit is contained in:
plc-user 2025-03-28 20:16:37 +01:00
parent 936a27500c
commit c1559d2a99
2 changed files with 3 additions and 3 deletions

View File

@ -175,7 +175,7 @@ void DynamicTextFieldEditor::setupWidget()
m_color_kpb->setObjectName(QString::fromUtf8("m_color_kpb"));
connect(m_color_kpb, &KColorButton::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);
#endif
@ -414,7 +414,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

@ -67,7 +67,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();