1 Star 0 Fork 0

uthelei/CodeLineCount

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
headerview.h 827 Bytes
一键复制 编辑 原始数据 按行查看 历史
lei.he 提交于 2021-04-25 09:38 . 添加线程函数执行code统计
#ifndef HEADERVIEW_H
#define HEADERVIEW_H
#include <QHeaderView>
class HeaderView : public QHeaderView
{
Q_OBJECT
public:
HeaderView(Qt::Orientation orientation, QWidget *parent = nullptr);
QSize sizeHint() const override;
int sectionSizeHint(int logicalIndex) const;
inline int getSpacing() const { return m_spacing; }
inline void setSpacing(int spacing) { m_spacing = spacing; }
signals:
void headerViewMouseMove();
protected:
void paintEvent(QPaintEvent *e) Q_DECL_OVERRIDE;
void paintSection(QPainter *painter, const QRect &rect, int logicalIndex) const Q_DECL_OVERRIDE;
void focusInEvent(QFocusEvent *event) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
private:
int m_spacing = 1;
Qt::FocusReason m_reson;
};
#endif // HEADERVIEW_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/uthelei/CodeLineCount.git
git@gitee.com:uthelei/CodeLineCount.git
uthelei
CodeLineCount
CodeLineCount
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385