summaryrefslogtreecommitdiff
path: root/Applications/PaintBrush/SprayTool.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-13 12:47:47 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-13 13:21:47 +0200
commit8882b6bd9a0761ecaa05a7a658ab90f8d5845e1b (patch)
tree6a9c31f587e83bad379b3319bfcc443c8f0fb57d /Applications/PaintBrush/SprayTool.cpp
parentde42ddfd93410e755ad033c9e3d39bec383b7320 (diff)
downloadserenity-8882b6bd9a0761ecaa05a7a658ab90f8d5845e1b.zip
PaintBrush: Remove the PaintableWidget
Moved the current colors to ImageEditor for now, although I don't think that will be their final home.
Diffstat (limited to 'Applications/PaintBrush/SprayTool.cpp')
-rw-r--r--Applications/PaintBrush/SprayTool.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Applications/PaintBrush/SprayTool.cpp b/Applications/PaintBrush/SprayTool.cpp
index 5349ec3db5..d9dbd89974 100644
--- a/Applications/PaintBrush/SprayTool.cpp
+++ b/Applications/PaintBrush/SprayTool.cpp
@@ -27,7 +27,6 @@
#include "SprayTool.h"
#include "ImageEditor.h"
#include "Layer.h"
-#include "PaintableWidget.h"
#include <AK/Queue.h>
#include <AK/SinglyLinkedList.h>
#include <LibGUI/Action.h>
@@ -87,7 +86,7 @@ void SprayTool::on_mousedown(Layer&, GUI::MouseEvent& event, GUI::MouseEvent&)
if (!m_editor->rect().contains(event.position()))
return;
- m_color = PaintableWidget::the().color_for(event);
+ m_color = m_editor->color_for(event);
m_last_pos = event.position();
m_timer->start();
paint_it();