mirror-chatterino2/widgets/notebookpagedroppreview.h

30 lines
569 B
C
Raw Normal View History

2017-01-01 02:30:42 +01:00
#ifndef NOTEBOOKPAGEDROPPREVIEW_H
#define NOTEBOOKPAGEDROPPREVIEW_H
#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);
void setBounds(const QRect &rect);
2017-01-01 02:30:42 +01:00
protected:
void paintEvent(QPaintEvent *);
void hideEvent(QHideEvent *);
2017-01-18 04:33:30 +01:00
QPropertyAnimation positionAnimation;
QRect desiredGeometry;
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