File indexing completed on 2024-05-26 04:32:35
0001 /* 0002 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef __NODE_VIEW_VISIBILITY_DELEGATE_H 0008 #define __NODE_VIEW_VISIBILITY_DELEGATE_H 0009 0010 #include <QAbstractItemDelegate> 0011 0012 0013 class NodeViewVisibilityDelegate : public QAbstractItemDelegate 0014 { 0015 public: 0016 NodeViewVisibilityDelegate(QObject *parent); 0017 ~NodeViewVisibilityDelegate() override; 0018 0019 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; 0020 QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override; 0021 }; 0022 0023 #endif