mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 01:22:10 +01:00
AbstractButtonInterface: Add call methods to ClickController
Workaround for Python bindings
This commit is contained in:
parent
190635db1b
commit
32a31142a6
|
@ -36,6 +36,14 @@ public:
|
||||||
std::function<QPoint(QSize)> popupPosition;
|
std::function<QPoint(QSize)> popupPosition;
|
||||||
bool popupOpened = false;
|
bool popupOpened = false;
|
||||||
std::function<void()> popupClosed;
|
std::function<void()> popupClosed;
|
||||||
|
|
||||||
|
QPoint callPopupPosition(const QSize &size) const {
|
||||||
|
return popupPosition(size);
|
||||||
|
}
|
||||||
|
|
||||||
|
void callPopupClosed() const {
|
||||||
|
popupClosed();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
explicit AbstractButtonInterface(QObject *parent = nullptr);
|
explicit AbstractButtonInterface(QObject *parent = nullptr);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user