Commit c3fd38e1 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

[effects/slide] Expose support information

Summary: That's mostly to analyze what options people use in bug reports.

Test Plan:
* Enabled the Slide effect
* Ran `qdbus org.kde.KWin /KWin supportInformation`

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: davidedmundson, kwin

Tags: #kwin

Differential Revision:
parent 6f173fc6
......@@ -32,6 +32,12 @@ namespace KWin
class SlideEffect : public Effect
Q_PROPERTY(int duration READ duration)
Q_PROPERTY(int horizontalGap READ horizontalGap)
Q_PROPERTY(int verticalGap READ verticalGap)
Q_PROPERTY(bool slideDocks READ slideDocks)
Q_PROPERTY(bool slideBackground READ slideBackground)
......@@ -54,6 +60,12 @@ public:
static bool supported();
int duration() const;
int horizontalGap() const;
int verticalGap() const;
bool slideDocks() const;
bool slideBackground() const;
private Q_SLOTS:
void desktopChanged(int old, int current, EffectWindow* with);
void windowAdded(EffectWindow* w);
......@@ -107,6 +119,31 @@ private:
QList<EffectWindow*> m_elevatedWindows;
inline int SlideEffect::duration() const
return m_timeLine.duration().count();
inline int SlideEffect::horizontalGap() const
return m_hGap;
inline int SlideEffect::verticalGap() const
return m_vGap;
inline bool SlideEffect::slideDocks() const
return m_slideDocks;
inline bool SlideEffect::slideBackground() const
return m_slideBackground;
} // namespace
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment