From c1559d2a9977695522ea1323740e3a0d080bae06 Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Fri, 28 Mar 2025 20:16:37 +0100 Subject: [PATCH] Fix signal for KColorButton --- sources/editor/ui/dynamictextfieldeditor.cpp | 4 ++-- sources/editor/ui/dynamictextfieldeditor.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/editor/ui/dynamictextfieldeditor.cpp b/sources/editor/ui/dynamictextfieldeditor.cpp index b21c2039d..51eec32c5 100644 --- a/sources/editor/ui/dynamictextfieldeditor.cpp +++ b/sources/editor/ui/dynamictextfieldeditor.cpp @@ -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; } diff --git a/sources/editor/ui/dynamictextfieldeditor.h b/sources/editor/ui/dynamictextfieldeditor.h index d419f9c72..b8ff68107 100644 --- a/sources/editor/ui/dynamictextfieldeditor.h +++ b/sources/editor/ui/dynamictextfieldeditor.h @@ -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();