Add rounding to addRect, add fill color to addPath

This commit is contained in:
GriffinR
2022-10-11 14:52:52 -04:00
committed by Marcus Huderle
parent 77d04bb6de
commit 67bec313a5
4 changed files with 47 additions and 79 deletions

View File

@@ -148,17 +148,17 @@ void MapView::setOpacity(int opacity) {
}
void MapView::addText(QString text, int x, int y, QString color, int fontSize, int layer) {
if (this->getOverlay(layer)->addText(text, x, y, color, fontSize))
this->getOverlay(layer)->addText(text, x, y, color, fontSize);
this->scene()->update();
}
void MapView::addRect(int x, int y, int width, int height, QString borderColor, QString fillColor, int rounding, int layer) {
if (this->getOverlay(layer)->addRect(x, y, width, height, borderColor, fillColor, rounding))
this->scene()->update();
}
void MapView::addRect(int x, int y, int width, int height, QString borderColor, QString fillColor, int layer) {
if (this->getOverlay(layer)->addRect(x, y, width, height, borderColor, fillColor))
this->scene()->update();
}
void MapView::addPath(QList<int> x, QList<int> y, QString color, int layer) {
if (this->getOverlay(layer)->addPath(x, y, color))
void MapView::addPath(QList<int> x, QList<int> y, QString borderColor, QString fillColor, int layer) {
if (this->getOverlay(layer)->addPath(x, y, borderColor, fillColor))
this->scene()->update();
}