Fix build with MSVC.

This commit is contained in:
Roman Telezhynskyi 2022-01-31 10:42:09 +02:00
parent fbccb7206d
commit 92e7f99e92
2 changed files with 4 additions and 4 deletions

View File

@ -114,13 +114,13 @@ auto VBackgroundPixmapItem::opaqueArea() const -> QPainterPath
}
//---------------------------------------------------------------------------------------------------------------------
auto VBackgroundPixmapItem::GetShapeMode() const -> enum ShapeMode
auto VBackgroundPixmapItem::GetShapeMode() const -> ShapeMode
{
return m_shapeMode;
}
//---------------------------------------------------------------------------------------------------------------------
void VBackgroundPixmapItem::SetShapeMode(enum ShapeMode mode)
void VBackgroundPixmapItem::SetShapeMode(ShapeMode mode)
{
if (m_shapeMode == mode)
{

View File

@ -60,7 +60,7 @@ public:
auto opaqueArea() const -> QPainterPath override;
auto GetShapeMode() const -> ShapeMode;
void SetShapeMode(enum ShapeMode mode);
void SetShapeMode(ShapeMode mode);
protected:
auto supportsExtension(Extension extension) const -> bool override;
@ -74,7 +74,7 @@ private:
mutable QPixmap m_pixmap{};
Qt::TransformationMode m_transformationMode{Qt::SmoothTransformation};
enum ShapeMode m_shapeMode{ShapeMode::MaskShape};
ShapeMode m_shapeMode{ShapeMode::MaskShape};
mutable QPainterPath m_shape{};
mutable bool m_hasShape{false};