File indexing completed on 2025-01-05 05:14:51
0001 /* 0002 SPDX-FileCopyrightText: 2021 Hamed Masafi <hamed.masfi@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-3.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "filestatus.h" 0010 #include "libkommitwidgets_export.h" 0011 #include <QTreeWidget> 0012 0013 class LIBKOMMITWIDGETS_EXPORT FilesStatusesList : public QTreeWidget 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit FilesStatusesList(QWidget *parent = nullptr); 0018 0019 const QList<Git::FileStatus> &files() const; 0020 void setFiles(const QList<Git::FileStatus> &newFiles); 0021 bool showCheckboxes() const; 0022 void setShowCheckboxes(bool newShowCheckboxes); 0023 0024 private: 0025 QList<Git::FileStatus> mFiles; 0026 bool mShowCheckboxes{false}; 0027 };