1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

PixelPaint: Use UndoStack instead of History

This allows to share more code with other undo systems.
This commit is contained in:
BenJilks 2020-11-13 13:19:24 +00:00 committed by Andreas Kling
parent 7707ebcd63
commit a27d118085
7 changed files with 41 additions and 134 deletions

View file

@ -26,9 +26,9 @@
#pragma once
#include "History.h"
#include "Image.h"
#include <LibGUI/Frame.h>
#include <LibGUI/UndoStack.h>
#include <LibGfx/Point.h>
namespace PixelPaint {
@ -108,7 +108,7 @@ private:
RefPtr<Image> m_image;
RefPtr<Layer> m_active_layer;
History m_history;
OwnPtr<GUI::UndoStack> m_undo_stack;
Tool* m_active_tool { nullptr };