代码拉取完成,页面将自动刷新
#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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。