Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_selection_actions_panel_button.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026 Luna Lovecraft <ciubix8514@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7#ifndef _KIS_SELECTION_ACTIONS_PANEL_BUTTON
8#define _KIS_SELECTION_ACTIONS_PANEL_BUTTON
9
10#include <qabstractbutton.h>
11
13
15class KisSelectionActionsPanelButton : public QAbstractButton {
16 public:
17 KisSelectionActionsPanelButton(const QString& iconName, const QString &tooltip, int size, QWidget *parent);
19 void draw(QPainter &painter, const KoColorDisplayRendererInterface *displayRendererInterface);
20protected:
21 void paintEvent(QPaintEvent *e) override;
22 void tabletEvent(QTabletEvent* e) override;
23 bool event(QEvent* event) override;
24 void contextMenuEvent(QContextMenuEvent *event) override;
25 void mousePressEvent(QMouseEvent* event) override;
26};
27
28
29#endif
Custom widget for selection actions panel buttons, to prevent them being drawn over the pop-up palett...
void draw(QPainter &painter, const KoColorDisplayRendererInterface *displayRendererInterface)
void mousePressEvent(QMouseEvent *event) override
KisSelectionActionsPanelButton(const QString &iconName, const QString &tooltip, int size, QWidget *parent)
void contextMenuEvent(QContextMenuEvent *event) override