implemented creation of certain image type and alo button for setting poylgon data

TODO implement setPolygon function
This commit is contained in:
Jan Schuffenhauer
2020-01-14 21:02:03 +01:00
parent 6fec7c26bf
commit d8f6f0f8f7
4 changed files with 86 additions and 11 deletions

View File

@@ -110,6 +110,13 @@ void PaintingArea::setLayerAlpha(int idx, int alpha){
layerBundle[static_cast<size_t>(idx)].alpha=alpha;
}
}
void PaintingArea::setPolygon(int idx){
if(idx>=0&&idx<static_cast<int>(layerBundle.size())) {
if(layerBundle[static_cast<size_t>(idx)].image->getTypeOfImage()==IntelliImage::ImageType::SHAPEDIMAGE){
qDebug() << "Todo Implement here set Polygon";
}
}
}
// Used to load the image and place it in the widget
bool PaintingArea::open(const QString &filePath){