From 66447906e71af504a13d2990b419afe5f0ed64fc Mon Sep 17 00:00:00 2001 From: przemek83 <4788832+przemek83@users.noreply.github.com> Date: Wed, 18 Dec 2024 09:18:50 +0100 Subject: [PATCH] Add missing constness. --- include/wble/FilterNumbers.h | 4 ++-- src/FilterNumbers.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/wble/FilterNumbers.h b/include/wble/FilterNumbers.h index 1eab344..d4536e9 100644 --- a/include/wble/FilterNumbers.h +++ b/include/wble/FilterNumbers.h @@ -41,7 +41,7 @@ class WBLE_EXPORT FilterNumbers : public Filter private: void initDoubleSlider(); - void initLineEdits(); + void initLineEdits() const; void initColorForLineEdits(); @@ -80,5 +80,5 @@ private Q_SLOTS: */ void toEditingFinished(); - void lineEditContentModified(const QString& currentContent); + void lineEditContentModified(const QString& currentContent) const; }; diff --git a/src/FilterNumbers.cpp b/src/FilterNumbers.cpp index e86d79b..d25349b 100644 --- a/src/FilterNumbers.cpp +++ b/src/FilterNumbers.cpp @@ -65,7 +65,7 @@ void FilterNumbers::initDoubleSlider() ui->verticalLayout->addWidget(slider); } -void FilterNumbers::initLineEdits() +void FilterNumbers::initLineEdits() const { connect(ui->fromValue, &QLineEdit::editingFinished, this, &FilterNumbers::fromEditingFinished); @@ -138,7 +138,7 @@ void FilterNumbers::toEditingFinished() emitChangeSignal(); } -void FilterNumbers::lineEditContentModified(const QString& currentContent) +void FilterNumbers::lineEditContentModified(const QString& currentContent) const { auto* lineEdit = qobject_cast(sender()); const double currentValue = QLocale::system().toDouble(currentContent);