mirror-chatterino2/src/widgets/helper/notebookbutton.hpp
2018-06-06 13:35:33 +02:00

40 lines
817 B
C++

#pragma once
#include "rippleeffectbutton.hpp"
#include <QWidget>
namespace chatterino {
namespace widgets {
class NotebookButton : public RippleEffectButton
{
Q_OBJECT
public:
static const int IconPlus = 0;
static const int IconUser = 1;
static const int IconSettings = 2;
int icon = 0;
NotebookButton(BaseWidget *parent);
protected:
virtual void themeRefreshEvent() override;
virtual void paintEvent(QPaintEvent *) override;
virtual void mouseReleaseEvent(QMouseEvent *) override;
virtual void dragEnterEvent(QDragEnterEvent *) override;
virtual void dragLeaveEvent(QDragLeaveEvent *) override;
virtual void dropEvent(QDropEvent *) override;
signals:
void clicked();
private:
QPoint mousePos_;
};
} // namespace widgets
} // namespace chatterino