From 71ff7630d4533785f60ffbc5a27a328e997e7771 Mon Sep 17 00:00:00 2001 From: laserpants Date: Tue, 22 Mar 2016 12:13:54 +0300 Subject: [PATCH] add Qt property declarations --- lib/customshadoweffect.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/customshadoweffect.h b/lib/customshadoweffect.h index 7a8825c..43d0bec 100644 --- a/lib/customshadoweffect.h +++ b/lib/customshadoweffect.h @@ -9,6 +9,11 @@ class CustomShadowEffect : public QGraphicsEffect { Q_OBJECT + + Q_PROPERTY(qreal distance WRITE setDistance READ distance) + Q_PROPERTY(qreal blurRadius WRITE setBlurRadius READ blurRadius) + Q_PROPERTY(qreal color WRITE setColor READ color) + public: explicit CustomShadowEffect(QObject *parent = 0);