You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
475 B
32 lines
475 B
#ifndef FLYME_H
|
|
#define FLYME_H
|
|
|
|
#include <QApplication>
|
|
#include <QMainWindow>
|
|
#include <QMenu>
|
|
#include <QContextMenuEvent>
|
|
#include <QPoint>
|
|
#include <QPushButton>
|
|
#include <QIcon>
|
|
|
|
class FloatingButton : public QPushButton
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
FloatingButton(QWidget *parent = nullptr);
|
|
~FloatingButton();
|
|
|
|
protected:
|
|
void FloatingButton_init();
|
|
void mousePressEvent(QMouseEvent *event) override;
|
|
|
|
|
|
signals:
|
|
void pressed();
|
|
|
|
};
|
|
|
|
|
|
#endif // FLYME_H
|