From 075422fc5e53fc7d4f8548c4b23f745b269775d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 20 Oct 2014 14:50:41 +0200 Subject: [PATCH] [effects] Add type property to StartupFeedback Effect Allows to read the configured type in support information. --- effects/startupfeedback/startupfeedback.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/effects/startupfeedback/startupfeedback.h b/effects/startupfeedback/startupfeedback.h index ca4d747abe..96ed0d8576 100644 --- a/effects/startupfeedback/startupfeedback.h +++ b/effects/startupfeedback/startupfeedback.h @@ -33,6 +33,7 @@ class StartupFeedbackEffect : public Effect { Q_OBJECT + Q_PROPERTY(int type READ type) public: StartupFeedbackEffect(); virtual ~StartupFeedbackEffect(); @@ -47,6 +48,10 @@ public: return 90; } + int type() const { + return int(m_type); + } + static bool supported(); private Q_SLOTS: