Krita Source Code Documentation
Loading...
Searching...
No Matches
NodeViewVisibilityDelegate Class Reference

#include <NodeViewVisibilityDelegate.h>

+ Inheritance diagram for NodeViewVisibilityDelegate:

Public Member Functions

 NodeViewVisibilityDelegate (QObject *parent)
 
void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override
 
 ~NodeViewVisibilityDelegate () override
 

Detailed Description

Definition at line 13 of file NodeViewVisibilityDelegate.h.

Constructor & Destructor Documentation

◆ NodeViewVisibilityDelegate()

NodeViewVisibilityDelegate::NodeViewVisibilityDelegate ( QObject * parent)

Definition at line 12 of file NodeViewVisibilityDelegate.cpp.

13 : QAbstractItemDelegate(parent)
14{
15}

◆ ~NodeViewVisibilityDelegate()

NodeViewVisibilityDelegate::~NodeViewVisibilityDelegate ( )
override

Definition at line 17 of file NodeViewVisibilityDelegate.cpp.

18{
19}

Member Function Documentation

◆ paint()

void NodeViewVisibilityDelegate::paint ( QPainter * painter,
const QStyleOptionViewItem & option,
const QModelIndex & index ) const
override

Definition at line 21 of file NodeViewVisibilityDelegate.cpp.

22{
23 Q_UNUSED(painter);
24 Q_UNUSED(option);
25 Q_UNUSED(index);
26}

◆ sizeHint()

QSize NodeViewVisibilityDelegate::sizeHint ( const QStyleOptionViewItem & option,
const QModelIndex & index ) const
override

Definition at line 28 of file NodeViewVisibilityDelegate.cpp.

29{
30 Q_UNUSED(index);
31
33 return QSize(option.rect.width(), scm.rowHeight());
34}

References KisNodeViewColorScheme::rowHeight().


The documentation for this class was generated from the following files: