5#ifndef DGRAPHICSCLIPEFFECT_H
6#define DGRAPHICSCLIPEFFECT_H
8#include <dtkwidget_global.h>
11#include <QGraphicsEffect>
12#include <QPainterPath>
14DWIDGET_BEGIN_NAMESPACE
21 Q_PROPERTY(
QMargins margins READ margins WRITE setMargins NOTIFY marginsChanged)
22 Q_PROPERTY(QPainterPath clipPath READ clipPath WRITE setClipPath NOTIFY clipPathChanged)
28 QPainterPath clipPath()
const;
31 void setMargins(
const QMargins &margins);
32 void setClipPath(
const QPainterPath &clipPath);
39 void draw(QPainter *painter) Q_DECL_OVERRIDE;