Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
807 B
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2015 Dmitry Kazakov <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#include "NodeViewVisibilityDelegate.h"

#include "kis_node_view_color_scheme.h"


NodeViewVisibilityDelegate::NodeViewVisibilityDelegate(QObject *parent)
    : QAbstractItemDelegate(parent)
{
}

NodeViewVisibilityDelegate::~NodeViewVisibilityDelegate()
{
}

void NodeViewVisibilityDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
    Q_UNUSED(painter);
    Q_UNUSED(option);
    Q_UNUSED(index);
}

QSize NodeViewVisibilityDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
{
    Q_UNUSED(index);

    KisNodeViewColorScheme scm;
    return QSize(option.rect.width(), scm.rowHeight());
}