mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
PixelPaint: Add selection functionality to the LayerListWidget
Now we can get rid of the old table view and with it the LayerModel.
This commit is contained in:
parent
e4b11a23b7
commit
18d68c8c94
10 changed files with 77 additions and 185 deletions
|
@ -26,7 +26,6 @@
|
|||
|
||||
#include "Image.h"
|
||||
#include "Layer.h"
|
||||
#include "LayerModel.h"
|
||||
#include <LibGUI/Painter.h>
|
||||
|
||||
//#define PAINT_DEBUG
|
||||
|
@ -72,13 +71,6 @@ void Image::add_layer(NonnullRefPtr<Layer> layer)
|
|||
client->image_did_add_layer(m_layers.size() - 1);
|
||||
}
|
||||
|
||||
GUI::Model& Image::layer_model()
|
||||
{
|
||||
if (!m_layer_model)
|
||||
m_layer_model = LayerModel::create(*this);
|
||||
return *m_layer_model;
|
||||
}
|
||||
|
||||
size_t Image::index_of(const Layer& layer) const
|
||||
{
|
||||
for (size_t i = 0; i < m_layers.size(); ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue