Painting made 'possible'

This commit is contained in:
Jonas Mucke
2019-12-04 22:48:10 +01:00
parent 6a52fbbb35
commit 2ded50dfa3
4 changed files with 3 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ PaintingArea::PaintingArea(int maxWidth, int maxHeight, QWidget *parent)
this->addLayer(200,200,150,150);
layerStructure[1].image->floodFill(QColor(0,255,0,255));
layerStructure[1].alpha=100;
activeLayer=1;
}
@@ -124,7 +125,7 @@ void PaintingArea::clearImage()
return;
}
IntelliImage* active = layerStructure[activeLayer].image;
active->floodFill(qRgb(255, 255, 255));
active->floodFill(QColor(255, 255, 255, 255));
update();
}