summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/PDFViewer/PDFViewer.cpp2
-rw-r--r--Userland/Applications/Piano/RollWidget.cpp2
-rw-r--r--Userland/Applications/PixelPaint/LayerListWidget.cpp2
-rw-r--r--Userland/Applications/PixelPaint/Tools/Tool.cpp4
4 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Applications/PDFViewer/PDFViewer.cpp b/Userland/Applications/PDFViewer/PDFViewer.cpp
index a5fc4bb67d..57ff4ab869 100644
--- a/Userland/Applications/PDFViewer/PDFViewer.cpp
+++ b/Userland/Applications/PDFViewer/PDFViewer.cpp
@@ -95,7 +95,7 @@ void PDFViewer::mousewheel_event(GUI::MouseEvent& event)
scrollbar.set_value(0);
}
} else {
- scrollbar.set_value(scrollbar.value() + 20);
+ scrollbar.increase_slider_by(20);
}
} else {
if (scrollbar.value() == 0) {
diff --git a/Userland/Applications/Piano/RollWidget.cpp b/Userland/Applications/Piano/RollWidget.cpp
index d2c6312dbd..915da0e294 100644
--- a/Userland/Applications/Piano/RollWidget.cpp
+++ b/Userland/Applications/Piano/RollWidget.cpp
@@ -239,7 +239,7 @@ void RollWidget::mouseup_event([[maybe_unused]] GUI::MouseEvent& event)
void RollWidget::mousewheel_event(GUI::MouseEvent& event)
{
if (event.modifiers() & KeyModifier::Mod_Shift) {
- horizontal_scrollbar().set_value(horizontal_scrollbar().value() + (event.wheel_delta() * horizontal_scroll_sensitivity));
+ horizontal_scrollbar().increase_slider_by(event.wheel_delta() * horizontal_scroll_sensitivity);
return;
}
diff --git a/Userland/Applications/PixelPaint/LayerListWidget.cpp b/Userland/Applications/PixelPaint/LayerListWidget.cpp
index 3414c57c7a..0a4b4f92cb 100644
--- a/Userland/Applications/PixelPaint/LayerListWidget.cpp
+++ b/Userland/Applications/PixelPaint/LayerListWidget.cpp
@@ -248,7 +248,7 @@ void LayerListWidget::on_automatic_scrolling_timer_fired()
if (vertical_scrollbar().is_max() && m_automatic_scroll_delta.y() > 0)
return;
- vertical_scrollbar().set_value(vertical_scrollbar().value() + m_automatic_scroll_delta.y());
+ vertical_scrollbar().increase_slider_by(m_automatic_scroll_delta.y());
gadget.movement_delta.set_y(gadget.movement_delta.y() + m_automatic_scroll_delta.y());
auto inner_rect_max_height = widget_inner_rect().height() - 2 + vertical_scrollbar().max();
diff --git a/Userland/Applications/PixelPaint/Tools/Tool.cpp b/Userland/Applications/PixelPaint/Tools/Tool.cpp
index d1e6f9f6b2..1165f11d74 100644
--- a/Userland/Applications/PixelPaint/Tools/Tool.cpp
+++ b/Userland/Applications/PixelPaint/Tools/Tool.cpp
@@ -38,7 +38,7 @@ void Tool::on_keydown(GUI::KeyEvent& event)
break;
case KeyCode::Key_RightBracket:
if (m_primary_slider)
- m_primary_slider->set_value(m_primary_slider->value() + 1);
+ m_primary_slider->increase_slider_by(1);
break;
case KeyCode::Key_LeftBrace:
if (m_secondary_slider)
@@ -46,7 +46,7 @@ void Tool::on_keydown(GUI::KeyEvent& event)
break;
case KeyCode::Key_RightBrace:
if (m_secondary_slider)
- m_secondary_slider->set_value(m_secondary_slider->value() + 1);
+ m_secondary_slider->increase_slider_by(1);
break;
default:
break;