Changeset View
Changeset View
Standalone View
Standalone View
libs/widgets/kis_popup_button.h
- This file was moved from libs/ui/widgets/kis_popup_button.h.
Context not available. | |||||
22 | 22 | | |||
---|---|---|---|---|---|
23 | #include <QPushButton> | 23 | #include <QPushButton> | ||
24 | 24 | | |||
25 | #include <kritaui_export.h> | 25 | #include <kritawidgets_export.h> | ||
26 | 26 | | |||
27 | /** | 27 | /** | ||
28 | * This class is a convenience class for a button that | 28 | * This class is a convenience class for a button that | ||
29 | * when clicked displays a popup widget. | 29 | * when clicked displays a popup widget. | ||
30 | */ | 30 | */ | ||
31 | class KRITAUI_EXPORT KisPopupButton : public QPushButton | 31 | class KRITAWIDGETS_EXPORT KisPopupButton : public QPushButton | ||
32 | { | 32 | { | ||
33 | 33 | | |||
34 | Q_OBJECT | 34 | Q_OBJECT | ||
Context not available. | |||||
57 | */ | 57 | */ | ||
58 | void setPopupWidgetWidth(int w); | 58 | void setPopupWidgetWidth(int w); | ||
59 | 59 | | |||
60 | /** | ||||
61 | * @brief adjustPosition | ||||
62 | * adjusts the position of the popup widget based on the position | ||||
63 | * of this button and the size of the widget | ||||
64 | */ | ||||
65 | void adjustPosition(); | ||||
66 | | ||||
60 | public Q_SLOTS: | 67 | public Q_SLOTS: | ||
61 | 68 | | |||
62 | void showPopupWidget(); | 69 | void showPopupWidget(); | ||
63 | 70 | | |||
64 | void hidePopupWidget(); | 71 | void hidePopupWidget(); | ||
65 | 72 | | |||
66 | void adjustPosition(); | | |||
67 | protected: | 73 | protected: | ||
68 | void paintEvent(QPaintEvent* event) override; | 74 | void paintEvent(QPaintEvent* event) override; | ||
69 | 75 | | |||
Context not available. |