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-License-Identifier: GPL-2.0-or-later
*/
#ifndef __KIS_EQUALIZER_BUTTON_H
#define __KIS_EQUALIZER_BUTTON_H
#include <QScopedPointer>
#include <QAbstractButton>
class KisEqualizerButton : public QAbstractButton
{
public:
KisEqualizerButton(QWidget *parent);
~KisEqualizerButton() override;
void paintEvent(QPaintEvent *event) override;
void setRightmost(bool value);
QSize sizeHint() const override;
QSize minimumSizeHint() const override;
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
void enterEvent(QEvent *event) override;
#else
void enterEvent(QEnterEvent *event) override;
#endif
void leaveEvent(QEvent *event) override;
private:
struct Private;
const QScopedPointer<Private> m_d;
};
#endif /* __KIS_EQUALIZER_BUTTON_H */