From 754d46a25085f991764e58633d9d1a77580a6fd8 Mon Sep 17 00:00:00 2001 From: Ivan Pelipenko Date: Wed, 24 Jun 2020 11:45:56 +0300 Subject: [PATCH] missing Graphic::setGraphicStyle(const Qt::PenStyle & style, int index) --- qad/graphic/graphic.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qad/graphic/graphic.h b/qad/graphic/graphic.h index 1dd457d..125758c 100644 --- a/qad/graphic/graphic.h +++ b/qad/graphic/graphic.h @@ -234,7 +234,8 @@ public slots: void setGraphicColor(const QColor & color) {setGraphicColor(color, curGraphic);} void setGridColor(const QColor & color) {grid_pen.setColor(color); if (aupdate) update();} void setSelectionColor(const QColor & color) {selpen.setColor(color);} - void setGraphicStyle(const Qt::PenStyle & style) {graphics[curGraphic].pen.setStyle(style); updateLegend(); if (aupdate) update();} + void setGraphicStyle(const Qt::PenStyle & style, int index) {graphics[index].pen.setStyle(style); updateLegend(); if (aupdate) update();} + void setGraphicStyle(const Qt::PenStyle & style) {setGraphicStyle(style, curGraphic);} void setGridStyle(const Qt::PenStyle & style) {grid_pen.setStyle(style); if (aupdate) update();} void setSelectionStyle(const Qt::PenStyle & style) {selpen.setStyle(style);} void setGraphicVisible(bool visible, int index) {graphics[index].visible = visible; updateLegendChecks(); if (aupdate) update();}