mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-15 12:50:33 +02:00
delete Layer
delete Layer, delete active Layer, protect against false input
This commit is contained in:
@@ -76,6 +76,11 @@ void PaintingArea::deleteLayer(int index){
|
||||
}
|
||||
}
|
||||
|
||||
void PaintingArea::deleteActiveLayer(){
|
||||
this->layerStructure.erase(layerStructure.begin()+activeLayer);
|
||||
activeLayer--;
|
||||
}
|
||||
|
||||
void PaintingArea::setLayerToActive(int index) {
|
||||
if(index<layerStructure.size()){
|
||||
this->activeLayer=index;
|
||||
|
||||
@@ -44,6 +44,7 @@ public slots:
|
||||
// Events to handle
|
||||
void clearImage(int r, int g, int b);
|
||||
void activate(int a);
|
||||
void deleteActiveLayer();
|
||||
|
||||
void setAlpha(int a);
|
||||
void getMoveUp(int a);
|
||||
|
||||
Reference in New Issue
Block a user