Skip to content

Commit

Permalink
Use static keyword instead const one for one of test methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Dec 25, 2024
1 parent f1af16d commit 7e274c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tests/DoubleSliderTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ void DoubleSliderTest::testPaintingBothHandlesTogether()
QCOMPARE(actual, expected);
}

void DoubleSliderTest::moveHandle(DoubleSlider& slider, QPoint from,
QPoint to) const
void DoubleSliderTest::moveHandle(DoubleSlider& slider, QPoint from, QPoint to)
{
QTest::mousePress(&slider, Qt::LeftButton, Qt::NoModifier, from);
QMouseEvent initialEvent(QEvent::MouseMove, from, slider.mapToGlobal(from),
Expand Down
2 changes: 1 addition & 1 deletion tests/DoubleSliderTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ private Q_SLOTS:
static void testPaintingBothHandlesTogether();

private:
void moveHandle(DoubleSlider& slider, QPoint from, QPoint to) const;
static void moveHandle(DoubleSlider& slider, QPoint from, QPoint to);

static constexpr int MIN{-100};
static constexpr int MAX{100};
Expand Down

0 comments on commit 7e274c4

Please sign in to comment.