1 Star 0 Fork 0

uthelei/CodeLineCount

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gitcountcodeWidget.h 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
helei 提交于 2023-05-25 19:22 . 修改windows差异
#ifndef GITCOUNTCODEWIDGET_H
#define GITCOUNTCODEWIDGET_H
#include "countcodeWidget.h"
#include <QFileInfo>
class QLineEdit;
class QStandardItemModel;
class StyleLabel;
class QProcess;
class QDateEdit;
class StyleButton;
//DWIDGET_USE_NAMESPACE
class GitCountCodeWidget : public CountCodeWidget
{
Q_OBJECT
public:
explicit GitCountCodeWidget(QWidget* parent = Q_NULLPTR);
~GitCountCodeWidget() Q_DECL_OVERRIDE;
void initBottomWidget() Q_DECL_OVERRIDE;
private:
void initForm() Q_DECL_OVERRIDE;
void deleteAllData() Q_DECL_OVERRIDE;
void setLabelStyle() Q_DECL_OVERRIDE;
void onClearData() Q_DECL_OVERRIDE;
void parseFile(const QString &path);
void addItem(QFileInfo info, int newLine, int deleteLine);
QDateEdit* createDateEdit();
private slots:
void onCountCode();
void onOpenPath();
void onCountSelectedData();
private:
QLineEdit* m_edit = Q_NULLPTR;
QLineEdit* m_dirEdit = Q_NULLPTR;
QDateEdit* m_startDateEdit = Q_NULLPTR;
QDateEdit* m_endateEdit = Q_NULLPTR;
QStandardItemModel* m_model = Q_NULLPTR;
StyleLabel* m_fileCountLabel = Q_NULLPTR;
StyleLabel* m_codeCountLabel = Q_NULLPTR;
StyleLabel* m_sizeCountLabel = Q_NULLPTR;
StyleButton* m_countBtn = Q_NULLPTR;
};
#endif // GITCOUNTCODEWIDGET_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/uthelei/CodeLineCount.git
git@gitee.com:uthelei/CodeLineCount.git
uthelei
CodeLineCount
CodeLineCount
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385