Skip to content

Commit dc61e07

Browse files
committed
Do not change behaviour of the diagram scene
1 parent 31866be commit dc61e07

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

qrgui/mainWindow/shapeEdit/scene.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ void Scene::changePenStyle(const QString &text)
525525
update();
526526
}
527527

528-
void Scene::changePenWidth(qreal width)
528+
void Scene::changePenWidth(int width)
529529
{
530530
mPenWidthItems = width;
531531
for (auto &&item : selectedSceneItems())

qrgui/mainWindow/shapeEdit/scene.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class Scene : public graphicsUtils::AbstractScene
7676

7777
private Q_SLOTS:
7878
void changePenStyle(const QString &text);
79-
void changePenWidth(qreal width);
79+
void changePenWidth(int width);
8080
void changePenColor(const QString &text);
8181
void changeBrushStyle(const QString &text);
8282
void changeBrushColor(const QString &text);

qrutils/graphicsUtils/abstractScene.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ void AbstractScene::setPenStyleItems(const QString &text)
311311
mPenStyleItems = text;
312312
}
313313

314-
void AbstractScene::setPenWidthItems(int width)
314+
void AbstractScene::setPenWidthItems(qreal width)
315315
{
316316
mPenWidthItems = width;
317317
}

qrutils/graphicsUtils/abstractScene.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class QRUTILS_EXPORT AbstractScene : public QGraphicsScene
4949
void setEmptyPenBrushItems();
5050

5151
void setPenStyleItems(const QString &text);
52-
void setPenWidthItems(int width);
52+
void setPenWidthItems(qreal width);
5353
void setPenColorItems(const QString &text);
5454
void setBrushStyleItems(const QString &text);
5555
void setBrushColorItems(const QString &text);

0 commit comments

Comments
 (0)