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 | |
10 | class QLabel; |
11 | class QLineEdit; |
12 | class QVBoxLayout; |
13 | class FileDiffView; |
14 | class HistoryDiffView : public QWidget |
15 | { |
16 | Q_OBJECT |
17 | public: |
18 | explicit HistoryDiffView(const QString &title = "", QWidget *parent = nullptr); |
19 | FileDiffView *getDiffView() const; |
20 | void setTitle(const QString &title); |
21 | QString getTitle() const; |
22 | |
23 | private: |
24 | QVBoxLayout *vLayout{nullptr}; |
25 | QLabel *titleLabel{nullptr}; |
26 | QLineEdit *searchEdit{nullptr}; |
27 | FileDiffView *diffView{nullptr}; |
28 | }; |
29 | |
30 | #endif // HISTORYDIFFVIEW_H |
31 |