Krita Source Code Documentation
Loading...
Searching...
No Matches
KisPopupButton.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2007 Cyrille Berger <cberger@cberger.net>
3
*
4
* SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#ifndef _KIS_POPUP_BUTTON_H_
8
#define _KIS_POPUP_BUTTON_H_
9
10
#include <QToolButton>
11
12
#include <kritawidgetutils_export.h>
13
18
class
KRITAWIDGETUTILS_EXPORT
KisPopupButton
:
public
QToolButton
19
{
20
21
Q_OBJECT
22
23
public
:
24
25
KisPopupButton
(QWidget* parent);
26
~KisPopupButton
()
override
;
27
32
void
setPopupWidget(QWidget* widget);
33
38
void
setPopupWidgetWidth(
int
w);
39
45
void
adjustPosition();
46
51
void
setArrowVisible(
bool
v
);
52
53
bool
isPopupWidgetVisible();
54
55
Q_SIGNALS:
56
void
sigPopupWidgetShown
();
57
58
public
Q_SLOTS:
59
60
void
showPopupWidget();
61
62
void
hidePopupWidget();
63
64
void
setPopupWidgetVisible(
bool
visible);
65
70
void
setPopupWidgetDetached(
bool
detach);
71
72
protected
:
73
void
paintEvent(QPaintEvent* event)
override
;
74
75
void
paintPopupArrow();
76
77
private
Q_SLOTS:
78
void
slotMenuAboutToHide();
79
80
private
:
81
struct
Private
;
82
Private
*
const
m_d
;
83
};
84
85
#endif
v
qreal v
Definition
KisBezierUtils.cpp:702
KisPopupButton
Definition
KisPopupButton.h:19
KisPopupButton::m_d
Private *const m_d
Definition
KisPopupButton.h:82
KisPopupButton::sigPopupWidgetShown
void sigPopupWidgetShown()
Private
Definition
SvgTransformParser.cpp:20
libs
widgetutils
KisPopupButton.h
Generated at
2026-03-02 02:30:02+01:00
from
Krita
branch
master
, commit
c7c49cc01571fe86bd36eb4c4c4a75e6f481bbea