mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
29 lines
522 B
C++
29 lines
522 B
C++
#ifndef NOTEBOOKPAGEDROPPREVIEW_H
|
|
#define NOTEBOOKPAGEDROPPREVIEW_H
|
|
|
|
#include <QPropertyAnimation>
|
|
#include <QWidget>
|
|
|
|
namespace chatterino {
|
|
namespace widgets {
|
|
|
|
class NotebookPageDropPreview : public QWidget
|
|
{
|
|
public:
|
|
NotebookPageDropPreview(QWidget *parent);
|
|
|
|
void setBounds(const QRect &rect);
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *);
|
|
|
|
void hideEvent(QHideEvent *);
|
|
|
|
QPropertyAnimation positionAnimation;
|
|
QRect desiredGeometry;
|
|
bool animate;
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif // NOTEBOOKPAGEDROPPREVIEW_H
|