1 Star 0 Fork 0

yinyigame / RPGMaker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ejsidebar.h 680 Bytes
一键复制 编辑 原始数据 按行查看 历史
mk4g 提交于 2018-03-26 07:59 . init
#ifndef EJSIDEBAR_H
#define EJSIDEBAR_H
#include <QWidget>
#include <QAction>
#include <QIcon>
class EjSideBar : public QWidget
{
Q_OBJECT
public:
EjSideBar(QWidget * parent = 0);
void addAction(QAction *action);
QAction *addAction(const QString &text, const QIcon &icon = QIcon());
protected:
void paintEvent(QPaintEvent *event);
void mousePressEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
QSize minimumSizeHint() const;
QAction* actionAt(const QPoint &at);
private:
QList<QAction*> m_actions;
QAction *m_pressedAction;
QAction *m_checkedAction;
int action_height= 90;
};
#endif // EJSIDEBAR_H
C++
1
https://gitee.com/yinyigame/RPGMaker.git
git@gitee.com:yinyigame/RPGMaker.git
yinyigame
RPGMaker
RPGMaker
master

搜索帮助