Added ability to fill default context menu for FlatLabel from external.

This commit is contained in:
23rd 2022-11-29 15:09:50 +03:00
parent c197c1831d
commit 6c345d2076

View file

@ -150,6 +150,7 @@ public:
bool fullSelection = false;
};
void setContextMenuHook(Fn<void(ContextMenuRequest)> hook);
void fillContextMenu(ContextMenuRequest request);
// ClickHandlerHost interface
void clickHandlerActiveChanged(const ClickHandlerPtr &action, bool active) override;
@ -210,7 +211,6 @@ private:
FromTouch,
};
void showContextMenu(QContextMenuEvent *e, ContextMenuReason reason);
void fillContextMenu(ContextMenuRequest request);
Text::String _text;
const style::FlatLabel &_st;