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

29 lines
561 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:
void paintEvent(QPaintEvent *) override;
void hideEvent(QHideEvent *) override;
2018-05-08 20:35:31 +02: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