2017-01-01 02:30:42 +01:00
|
|
|
#ifndef NOTEBOOKPAGEDROPPREVIEW_H
|
|
|
|
#define NOTEBOOKPAGEDROPPREVIEW_H
|
|
|
|
|
2017-01-16 17:20:48 +01:00
|
|
|
#include <QPropertyAnimation>
|
2017-01-01 02:30:42 +01:00
|
|
|
#include <QWidget>
|
|
|
|
|
2017-01-18 21:30:23 +01:00
|
|
|
namespace chatterino {
|
|
|
|
namespace widgets {
|
|
|
|
|
2017-01-01 02:30:42 +01:00
|
|
|
class NotebookPageDropPreview : public QWidget
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
NotebookPageDropPreview(QWidget *parent);
|
|
|
|
|
2017-01-16 17:20:48 +01:00
|
|
|
void setBounds(const QRect &rect);
|
|
|
|
|
2017-01-01 02:30:42 +01:00
|
|
|
protected:
|
|
|
|
void paintEvent(QPaintEvent *);
|
2017-01-16 17:20:48 +01:00
|
|
|
|
2017-01-26 09:26:18 +01:00
|
|
|
void hideEvent(QHideEvent *);
|
|
|
|
|
2017-01-18 04:33:30 +01:00
|
|
|
QPropertyAnimation positionAnimation;
|
|
|
|
QRect desiredGeometry;
|
2017-01-26 09:26:18 +01:00
|
|
|
bool animate;
|
2017-01-01 02:30:42 +01:00
|
|
|
};
|
2017-04-14 17:47:28 +02:00
|
|
|
} // namespace widgets
|
|
|
|
} // namespace chatterino
|
2017-01-01 02:30:42 +01:00
|
|
|
|
2017-01-11 18:52:09 +01:00
|
|
|
#endif // NOTEBOOKPAGEDROPPREVIEW_H
|