mirror-chatterino2/src/widgets/helper/droppreview.hpp

29 lines
559 B
C++
Raw Normal View History

#pragma once
2017-01-01 02:30:42 +01:00
#include "widgets/basewidget.hpp"
#include <QPropertyAnimation>
2017-01-01 02:30:42 +01:00
#include <QWidget>
2017-01-18 21:30:23 +01:00
namespace chatterino {
namespace widgets {
class NotebookPageDropPreview : public BaseWidget
2017-01-01 02:30:42 +01:00
{
public:
NotebookPageDropPreview(BaseWidget *parent);
2017-01-01 02:30:42 +01:00
void setBounds(const QRect &rect);
2017-01-01 02:30:42 +01:00
protected:
virtual void paintEvent(QPaintEvent *) override;
virtual void hideEvent(QHideEvent *) override;
2017-01-18 04:33:30 +01:00
QPropertyAnimation positionAnimation;
QRect desiredGeometry;
bool animate = false;
2017-01-01 02:30:42 +01:00
};
2017-04-14 17:47:28 +02:00
} // namespace widgets
} // namespace chatterino