Krita Source Code Documentation
Loading...
Searching...
No Matches
KisAnimTimelineFrameDelegate.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __TIMELINE_FRAMES_ITEM_DELEGATE_H
8#define __TIMELINE_FRAMES_ITEM_DELEGATE_H
9
10#include <QItemDelegate>
11
12
13class KisAnimTimelineFrameDelegate : public QItemDelegate
14{
15public:
16 KisAnimTimelineFrameDelegate(QObject *parent);
18
19 static void paintActiveFrameSelector(QPainter *painter, const QRect &rc, bool isCurrentFrame);
20
22 void paintSpecialKeyframeIndicator(QPainter *painter, const QModelIndex &index, const QRect &rc) const;
23
24 void drawBackground(QPainter *painter, const QModelIndex &index, const QRect &rc) const;
25 void drawFocus(QPainter *painter,
26 const QStyleOptionViewItem &option,
27 const QRect &rect) const override;
28 void drawCloneGraphics(QPainter *painter, const QRect &rect) const;
29
30 void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
31
32private:
34 QPixmap stripes;
35};
36
37#endif /* __TIMELINE_FRAMES_ITEM_DELEGATE_H */
void paintSpecialKeyframeIndicator(QPainter *painter, const QModelIndex &index, const QRect &rc) const
the opacity keyframe
void drawFocus(QPainter *painter, const QStyleOptionViewItem &option, const QRect &rect) const override
static void paintActiveFrameSelector(QPainter *painter, const QRect &rc, bool isCurrentFrame)
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
void drawCloneGraphics(QPainter *painter, const QRect &rect) const
void drawBackground(QPainter *painter, const QModelIndex &index, const QRect &rc) const