#ifndef CUSTOMFILEDELEGATE_H
#define CUSTOMFILEDELEGATE_H

#include <QStyledItemDelegate>
#include <QPainter>
#include <QFileSystemModel>
#include <QDebug>

class file_explorer;
class Custom_File_Delegate : public QStyledItemDelegate {
    Q_OBJECT
public:
    explicit Custom_File_Delegate(file_explorer *fileExplorer, QObject *parent = nullptr);
    file_explorer *fileExplorer{};
    void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;

    QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
};


#endif
