Fix the brushes not existing
This commit is contained in:
parent
2ccc2ca0f9
commit
ef20967289
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
CropScene::CropScene(QObject *parent, QPixmap *pixmap)
|
CropScene::CropScene(QObject *parent, QPixmap *pixmap)
|
||||||
: QGraphicsScene(parent), drawingSelectionMaker([] { return nullptr; }), prevButtons(Qt::NoButton),
|
: QGraphicsScene(parent), drawingSelectionMaker([] { return nullptr; }), prevButtons(Qt::NoButton),
|
||||||
_font(settings::settings().value("font", QFont()).value<QFont>()) {
|
_brush(Qt::SolidPattern), _font(settings::settings().value("font", QFont()).value<QFont>()) {
|
||||||
_pixmap = pixmap;
|
_pixmap = pixmap;
|
||||||
pen().setColor(settings::settings().value("penColor", pen().color()).value<QColor>());
|
pen().setColor(settings::settings().value("penColor", pen().color()).value<QColor>());
|
||||||
pen().setCosmetic(settings::settings().value("penCosmetic", pen().isCosmetic()).toBool());
|
pen().setCosmetic(settings::settings().value("penCosmetic", pen().isCosmetic()).toBool());
|
||||||
|
Loading…
Reference in New Issue
Block a user