mirror-chatterino2/src/widgets/notebookpagedroppreview.hpp

28 lines
477 B
C++
Raw Normal View History

#pragma once
2017-01-01 02:30:42 +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);
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