1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef HISTORYDIFFVIEW_H
6#define HISTORYDIFFVIEW_H
7
8#include <QWidget>
9
10class QLabel;
11class QLineEdit;
12class QVBoxLayout;
13class FileDiffView;
14class HistoryDiffView : public QWidget
15{
16 Q_OBJECT
17public:
18 explicit HistoryDiffView(const QString &title = "", QWidget *parent = nullptr);
19 FileDiffView *getDiffView() const;
20 void setTitle(const QString &title);
21 QString getTitle() const;
22
23private:
24 QVBoxLayout *vLayout{nullptr};
25 QLabel *titleLabel{nullptr};
26 QLineEdit *searchEdit{nullptr};
27 FileDiffView *diffView{nullptr};
28};
29
30#endif // HISTORYDIFFVIEW_H
31