2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2021 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2021-11-22 13:41:20 +02:00
|
|
|
|
2021-12-21 20:04:32 +02:00
|
|
|
#ifndef CHECKABLEFILETREEITEM_H
|
|
|
|
|
#define CHECKABLEFILETREEITEM_H
|
2021-11-22 13:41:20 +02:00
|
|
|
|
|
|
|
|
#include <utils/fileutils.h>
|
2021-12-21 20:04:32 +02:00
|
|
|
|
|
|
|
|
#include <QStandardItem>
|
2021-11-22 13:41:20 +02:00
|
|
|
|
2022-05-11 15:45:41 +03:00
|
|
|
namespace QmlProjectManager {
|
2021-11-22 13:41:20 +02:00
|
|
|
|
2021-12-21 20:04:32 +02:00
|
|
|
class CheckableFileTreeItem : public QStandardItem
|
2021-11-22 13:41:20 +02:00
|
|
|
{
|
|
|
|
|
public:
|
2021-12-21 20:04:32 +02:00
|
|
|
explicit CheckableFileTreeItem(const Utils::FilePath &text = Utils::FilePath());
|
|
|
|
|
|
|
|
|
|
const Utils::FilePath toFilePath() const;
|
|
|
|
|
bool isFile() const;
|
|
|
|
|
bool isDir() const;
|
|
|
|
|
|
2021-11-22 13:41:20 +02:00
|
|
|
bool isChecked() const;
|
|
|
|
|
void setChecked(bool checked);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
bool checked;
|
|
|
|
|
};
|
|
|
|
|
|
2022-05-11 15:45:41 +03:00
|
|
|
} //QmlProjectManager
|
2021-11-22 13:41:20 +02:00
|
|
|
|
2021-12-21 20:04:32 +02:00
|
|
|
#endif // CHECKABLEFILETREEITEM_H
|