1
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:
David Rosca 2018-02-26 16:58:39 +01:00
parent 190635db1b
commit 32a31142a6
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -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);