1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 17:42:10 +01:00
falkonOfficial/src/tools/menu.h

42 lines
678 B
C
Raw Normal View History

#ifndef MENU_H
#define MENU_H
#include <QMenu>
#include <QMouseEvent>
class Menu : public QMenu
{
Q_OBJECT
public:
explicit Menu(QWidget* parent = 0);
explicit Menu(const QString &title, QWidget* parent = 0);
signals:
public slots:
private:
void mouseReleaseEvent(QMouseEvent* e);
void closeAllMenus();
};
class Action : public QAction
{
Q_OBJECT
public:
explicit Action(QObject* parent = 0);
explicit Action(const QString &text, QObject* parent = 0);
explicit Action(const QIcon &icon, const QString &text, QObject* parent = 0);
signals:
void middleClicked();
public slots:
void triggerMiddleClick();
};
#endif // MENU_H