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++
/*
* SPDX-FileCopyrightText: 2015 Dmitry Kazakov <[email protected]>
* SPDX-FileCopyrightText: 2020 Emmet O 'Neill <[email protected]>
* SPDX-FileCopyrightText: 2020 Eoin O 'Neill <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __TIMELINE_LAYERS_HEADER_H
#define __TIMELINE_LAYERS_HEADER_H
#include <QHeaderView>
#include <QProxyStyle>
#include <QScopedPointer>
class KisAnimTimelineLayersHeader : public QHeaderView
{
Q_OBJECT
public:
KisAnimTimelineLayersHeader(QWidget *parent);
~KisAnimTimelineLayersHeader() override;
protected:
void paintSection(QPainter *painter, const QRect &rect, int layerIndex) const override;
QSize sectionSizeFromContents(int layerIndex) const override;
bool viewportEvent(QEvent *event) override;
void mousePressEvent(QMouseEvent *event) override;
void mouseDoubleClickEvent(QMouseEvent *event) override {mousePressEvent(event);}
Q_SIGNALS:
void sigRequestContextMenu(const QPoint &pos);
private:
struct Private;
const QScopedPointer<Private> m_d;
};
#endif /* __TIMELINE_LAYERS_HEADER_H */