Krita Source Code Documentation
Loading...
Searching...
No Matches
KisAnimCurvesChannelDelegate.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Jouni Pentikäinen <joupent@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef _KIS_ANIMATION_CURVE_CHANNEL_LIST_DELEGATE_H
8#define _KIS_ANIMATION_CURVE_CHANNEL_LIST_DELEGATE_H
9
10#include <qstyleditemdelegate.h>
11
12class KisAnimCurvesChannelDelegate : public QStyledItemDelegate
13{
14public:
15 KisAnimCurvesChannelDelegate(QObject *parent);
16
17 QSize sizeHint(const QStyleOptionViewItem &styleOption, const QModelIndex &index) const override;
18 bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override;
19 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
20
21private:
22 void paintNodeBackground( const QStyleOptionViewItem &option, QPainter *painter, const QColor& nodeColor) const;
23 void soloChannelVisibility( QAbstractItemModel *model, const QModelIndex &index );
24 void showAllChannels(QAbstractItemModel *model , const QModelIndex &nodeIndex);
25};
26
27#endif
void showAllChannels(QAbstractItemModel *model, const QModelIndex &nodeIndex)
bool editorEvent(QEvent *event, QAbstractItemModel *model, const QStyleOptionViewItem &option, const QModelIndex &index) override
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
QSize sizeHint(const QStyleOptionViewItem &styleOption, const QModelIndex &index) const override
void paintNodeBackground(const QStyleOptionViewItem &option, QPainter *painter, const QColor &nodeColor) const
void soloChannelVisibility(QAbstractItemModel *model, const QModelIndex &index)