yolobs-studio/UI/menu-button.hpp

24 lines
417 B
C++
Raw Normal View History

2016-02-23 23:16:51 +00:00
#pragma once
#include <QPushButton>
class MenuButton : public QPushButton {
Q_OBJECT
protected:
void mousePressEvent(QMouseEvent *event) override;
void keyPressEvent(QKeyEvent *event) override;
public:
explicit inline MenuButton(QWidget *parent = nullptr)
: QPushButton(parent)
{
}
explicit inline MenuButton(const QString &text,
2019-09-22 21:19:10 +00:00
QWidget *parent = nullptr)
2016-02-23 23:16:51 +00:00
: QPushButton(text, parent)
{
}
};