]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/kitemviews/private/kitemlistviewanimation.h
Fix all 'explicit constructor' krazy warnings
[dolphin.git] / src / kitemviews / private / kitemlistviewanimation.h
index e2e53385037fbad6282431b95eb4f7558aaf6e3b..f73ea7fb75ef6dd379b25bb2b51d044137cddce2 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef KITEMLISTVIEWANIMATION_H
 #define KITEMLISTVIEWANIMATION_H
 
-#include <libdolphin_export.h>
+#include "dolphin_export.h"
 
 #include <QHash>
 #include <QObject>
@@ -36,7 +36,7 @@ class QPropertyAnimation;
  * Supports item animations for moving, creating, deleting and resizing
  * an item. Several applications can be applied to one item in parallel.
  */
-class LIBDOLPHINPRIVATE_EXPORT KItemListViewAnimation : public QObject
+class DOLPHIN_EXPORT KItemListViewAnimation : public QObject
 {
     Q_OBJECT
 
@@ -48,8 +48,8 @@ public:
         ResizeAnimation
     };
 
-    KItemListViewAnimation(QObject* parent = 0);
-    virtual ~KItemListViewAnimation();
+    explicit KItemListViewAnimation(QObject* parent = nullptr);
+    ~KItemListViewAnimation() override;
 
     void setScrollOrientation(Qt::Orientation orientation);
     Qt::Orientation scrollOrientation() const;
@@ -94,7 +94,6 @@ private slots:
 private:
     enum { AnimationTypeCount = 4 };
 
-    int m_animationDuration;
     Qt::Orientation m_scrollOrientation;
     qreal m_scrollOffset;
     QHash<QGraphicsWidget*, QPropertyAnimation*> m_animation[AnimationTypeCount];