📄 menuaction.h
字号:
#ifndef __MENUACTION_H__#define __MENUACTION_H__#include <QAction>#include <QString>#include <QIcon>namespace gui {/** Class for Wrapping QMenuAction, providing extra signal that will pass pointer to itself as parameter*/class MenuAction : public QAction {Q_OBJECTpublic: MenuAction(QObject *parent); MenuAction(const QString &text, QObject *parent); MenuAction(const QIcon &icon, const QString &text, QObject *parent);public slots: void internal_triggered(bool checked=false); void internal_hovered();signals: /** Signal emitted when activating this action. The action sends pointer to itself. @param action Action */ void triggered(QAction* action);signals: /** Signal emitted when mouse is hovered over the item Help text for item is sent @param text Help text */ void helpText(const QString &text);private: void init();};} // namespace gui#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -