Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_round_hud_button.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_ROUND_HUD_BUTTON_H
8#define __KIS_ROUND_HUD_BUTTON_H
9
10#include <QScopedPointer>
11#include <QAbstractButton>
12
13
14
15class KisRoundHudButton : public QAbstractButton
16{
17public:
18 KisRoundHudButton(QWidget *parent);
19 ~KisRoundHudButton() override;
20
21 void setOnOffIcons(const QIcon &on, const QIcon &off);
22
23protected:
24 void paintEvent(QPaintEvent *event) override;
25 bool hitButton(const QPoint &pos) const override;
26
27 void mouseMoveEvent(QMouseEvent *event) override;
28 void leaveEvent(QEvent *event) override;
29
30private:
31 struct Private;
32 const QScopedPointer<Private> m_d;
33};
34
35#endif /* __KIS_ROUND_HUD_BUTTON_H */
void mouseMoveEvent(QMouseEvent *event) override
bool hitButton(const QPoint &pos) const override
KisRoundHudButton(QWidget *parent)
const QScopedPointer< Private > m_d
void leaveEvent(QEvent *event) override
void setOnOffIcons(const QIcon &on, const QIcon &off)
void paintEvent(QPaintEvent *event) override