Fix build with MSVC.
This commit is contained in:
parent
fbccb7206d
commit
92e7f99e92
|
@ -114,13 +114,13 @@ auto VBackgroundPixmapItem::opaqueArea() const -> QPainterPath
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
auto VBackgroundPixmapItem::GetShapeMode() const -> enum ShapeMode
|
auto VBackgroundPixmapItem::GetShapeMode() const -> ShapeMode
|
||||||
{
|
{
|
||||||
return m_shapeMode;
|
return m_shapeMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VBackgroundPixmapItem::SetShapeMode(enum ShapeMode mode)
|
void VBackgroundPixmapItem::SetShapeMode(ShapeMode mode)
|
||||||
{
|
{
|
||||||
if (m_shapeMode == mode)
|
if (m_shapeMode == mode)
|
||||||
{
|
{
|
||||||
|
|
|
@ -60,7 +60,7 @@ public:
|
||||||
auto opaqueArea() const -> QPainterPath override;
|
auto opaqueArea() const -> QPainterPath override;
|
||||||
|
|
||||||
auto GetShapeMode() const -> ShapeMode;
|
auto GetShapeMode() const -> ShapeMode;
|
||||||
void SetShapeMode(enum ShapeMode mode);
|
void SetShapeMode(ShapeMode mode);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
auto supportsExtension(Extension extension) const -> bool override;
|
auto supportsExtension(Extension extension) const -> bool override;
|
||||||
|
@ -74,7 +74,7 @@ private:
|
||||||
|
|
||||||
mutable QPixmap m_pixmap{};
|
mutable QPixmap m_pixmap{};
|
||||||
Qt::TransformationMode m_transformationMode{Qt::SmoothTransformation};
|
Qt::TransformationMode m_transformationMode{Qt::SmoothTransformation};
|
||||||
enum ShapeMode m_shapeMode{ShapeMode::MaskShape};
|
ShapeMode m_shapeMode{ShapeMode::MaskShape};
|
||||||
mutable QPainterPath m_shape{};
|
mutable QPainterPath m_shape{};
|
||||||
mutable bool m_hasShape{false};
|
mutable bool m_hasShape{false};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user