首次提交
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#ifndef CUSTOMFILEDELEGATE_H
|
||||
#define CUSTOMFILEDELEGATE_H
|
||||
|
||||
#include <QStyledItemDelegate>
|
||||
#include <QPainter>
|
||||
#include <QFileSystemModel>
|
||||
#include <QDebug>
|
||||
|
||||
class FileExplorer;
|
||||
class CustomFileDelegate : public QStyledItemDelegate {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit CustomFileDelegate(FileExplorer *fileExplorer, QObject *parent = nullptr);
|
||||
FileExplorer *fileExplorer{};
|
||||
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user