Skip to content

Commit

Permalink
Add missing constness.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Dec 18, 2024
1 parent 723689c commit 6644790
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/wble/FilterNumbers.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class WBLE_EXPORT FilterNumbers : public Filter
private:
void initDoubleSlider();

void initLineEdits();
void initLineEdits() const;

void initColorForLineEdits();

Expand Down Expand Up @@ -80,5 +80,5 @@ private Q_SLOTS:
*/
void toEditingFinished();

void lineEditContentModified(const QString& currentContent);
void lineEditContentModified(const QString& currentContent) const;
};
4 changes: 2 additions & 2 deletions src/FilterNumbers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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<QLineEdit*>(sender());
const double currentValue = QLocale::system().toDouble(currentContent);
Expand Down

0 comments on commit 6644790

Please sign in to comment.