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 #include "filesstatuseslist.h"
0008 
0009 FilesStatusesList::FilesStatusesList(QWidget *parent)
0010     : QTreeWidget(parent)
0011 {
0012     setColumnCount(2);
0013 }
0014 
0015 const QList<Git::FileStatus> &FilesStatusesList::files() const
0016 {
0017     return mFiles;
0018 }
0019 
0020 void FilesStatusesList::setFiles(const QList<Git::FileStatus> &newFiles)
0021 {
0022     mFiles = newFiles;
0023 }
0024 
0025 bool FilesStatusesList::showCheckboxes() const
0026 {
0027     return mShowCheckboxes;
0028 }
0029 
0030 void FilesStatusesList::setShowCheckboxes(bool newShowCheckboxes)
0031 {
0032     mShowCheckboxes = newShowCheckboxes;
0033 }
0034 
0035 // #include "moc_filesstatuseslist.cpp"