added animation to NotebookPageDropPreview

This commit is contained in:
fourtf
2017-01-16 17:20:48 +01:00
parent d7f98030e1
commit 7901071408
3 changed files with 28 additions and 2 deletions
+6
View File
@@ -1,6 +1,7 @@
#ifndef NOTEBOOKPAGEDROPPREVIEW_H
#define NOTEBOOKPAGEDROPPREVIEW_H
#include <QPropertyAnimation>
#include <QWidget>
class NotebookPageDropPreview : public QWidget
@@ -8,8 +9,13 @@ class NotebookPageDropPreview : public QWidget
public:
NotebookPageDropPreview(QWidget *parent);
void setBounds(const QRect &rect);
protected:
void paintEvent(QPaintEvent *);
QPropertyAnimation m_positionAnimation;
QRect m_desiredGeometry;
};
#endif // NOTEBOOKPAGEDROPPREVIEW_H