mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
40 lines
817 B
C++
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
|