Added ability to fill default context menu for FlatLabel from external.
This commit is contained in:
parent
c197c1831d
commit
6c345d2076
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue