[libkwineffects] Use Q_ENUM in AnimationEffect
Summary: Q_ENUMS is deprecated. Test Plan: The Window Aperture effect still works. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D17587
This commit is contained in:
parent
9ac2e5d5bb
commit
7dec4643f7
1 changed files with 6 additions and 3 deletions
|
@ -94,21 +94,24 @@ class AnimationEffectPrivate;
|
||||||
class KWINEFFECTS_EXPORT AnimationEffect : public Effect
|
class KWINEFFECTS_EXPORT AnimationEffect : public Effect
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_ENUMS(Anchor)
|
|
||||||
Q_ENUMS(Attribute)
|
|
||||||
Q_ENUMS(MetaType)
|
|
||||||
public:
|
public:
|
||||||
typedef QMap< EffectWindow*, QPair<QList<AniData>, QRect> > AniMap;
|
typedef QMap< EffectWindow*, QPair<QList<AniData>, QRect> > AniMap;
|
||||||
|
|
||||||
enum Anchor { Left = 1<<0, Top = 1<<1, Right = 1<<2, Bottom = 1<<3,
|
enum Anchor { Left = 1<<0, Top = 1<<1, Right = 1<<2, Bottom = 1<<3,
|
||||||
Horizontal = Left|Right, Vertical = Top|Bottom, Mouse = 1<<4 };
|
Horizontal = Left|Right, Vertical = Top|Bottom, Mouse = 1<<4 };
|
||||||
|
Q_ENUM(Anchor)
|
||||||
|
|
||||||
enum Attribute {
|
enum Attribute {
|
||||||
Opacity = 0, Brightness, Saturation, Scale, Rotation,
|
Opacity = 0, Brightness, Saturation, Scale, Rotation,
|
||||||
Position, Size, Translation, Clip, Generic, CrossFadePrevious,
|
Position, Size, Translation, Clip, Generic, CrossFadePrevious,
|
||||||
NonFloatBase = Position
|
NonFloatBase = Position
|
||||||
};
|
};
|
||||||
|
Q_ENUM(Attribute)
|
||||||
|
|
||||||
enum MetaType { SourceAnchor, TargetAnchor,
|
enum MetaType { SourceAnchor, TargetAnchor,
|
||||||
RelativeSourceX, RelativeSourceY, RelativeTargetX, RelativeTargetY, Axis };
|
RelativeSourceX, RelativeSourceY, RelativeTargetX, RelativeTargetY, Axis };
|
||||||
|
Q_ENUM(MetaType)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This enum type is used to specify the direction of the animation.
|
* This enum type is used to specify the direction of the animation.
|
||||||
|
|
Loading…
Reference in a new issue