mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
plasma: remove redundant Plasma::Animator::Animation::LastAnimation enum
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
8163991f03
commit
3f4425e9bb
2 changed files with 3 additions and 4 deletions
|
@ -33,7 +33,7 @@ namespace Plasma
|
||||||
|
|
||||||
Plasma::Animation* Animator::create(Animator::Animation type, QObject *parent)
|
Plasma::Animation* Animator::create(Animator::Animation type, QObject *parent)
|
||||||
{
|
{
|
||||||
Plasma::Animation *result = 0;
|
Plasma::Animation *result = nullptr;
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case FadeAnimation: {
|
case FadeAnimation: {
|
||||||
|
|
|
@ -53,8 +53,7 @@ public:
|
||||||
SlideAnimation, /* Move the position of animated object */
|
SlideAnimation, /* Move the position of animated object */
|
||||||
GeometryAnimation, /* Geometry animation */
|
GeometryAnimation, /* Geometry animation */
|
||||||
ZoomAnimation, /* Zoom animation */
|
ZoomAnimation, /* Zoom animation */
|
||||||
PixmapTransitionAnimation, /* Transition between two pixmaps */
|
PixmapTransitionAnimation /* Transition between two pixmaps */
|
||||||
LastAnimation = 1024
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -62,7 +61,7 @@ public:
|
||||||
* check \ref AbstractAnimation properties.
|
* check \ref AbstractAnimation properties.
|
||||||
* @since 4.4
|
* @since 4.4
|
||||||
**/
|
**/
|
||||||
static Plasma::Animation *create(Animator::Animation type, QObject *parent = 0);
|
static Plasma::Animation *create(Animator::Animation type, QObject *parent = nullptr);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Animator();
|
Animator();
|
||||||
|
|
Loading…
Add table
Reference in a new issue