File indexing completed on 2024-12-22 04:14:39
0001 /* 0002 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef __KIS_EQUALIZER_BUTTON_H 0008 #define __KIS_EQUALIZER_BUTTON_H 0009 0010 #include <QScopedPointer> 0011 #include <QAbstractButton> 0012 0013 0014 class KisEqualizerButton : public QAbstractButton 0015 { 0016 public: 0017 KisEqualizerButton(QWidget *parent); 0018 ~KisEqualizerButton() override; 0019 0020 void paintEvent(QPaintEvent *event) override; 0021 void setRightmost(bool value); 0022 0023 QSize sizeHint() const override; 0024 QSize minimumSizeHint() const override; 0025 0026 void enterEvent(QEvent *event) override; 0027 void leaveEvent(QEvent *event) override; 0028 0029 private: 0030 struct Private; 0031 const QScopedPointer<Private> m_d; 0032 }; 0033 0034 #endif /* __KIS_EQUALIZER_BUTTON_H */