yolobs-studio/UI/menu-button.hpp
2019-09-22 23:19:10 +02:00

23 lines
417 B
C++

#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,
QWidget *parent = nullptr)
: QPushButton(text, parent)
{
}
};