Skip to content

Commit

Permalink
Allow settings selected menu item.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Oct 5, 2023
1 parent 0d8717d commit 3698eb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/widgets/menu/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ class Menu : public RpWidget {
}
void handleMouseRelease(QPoint globalPosition);

void setSelected(int selected, bool isMouseSelection);

[[nodiscard]] rpl::producer<> resizesFromInner() const;
[[nodiscard]] rpl::producer<ScrollToRequest> scrollToRequests() const;

Expand All @@ -119,7 +121,6 @@ class Menu : public RpWidget {
const style::icon *icon = nullptr,
const style::icon *iconOver = nullptr);

void setSelected(int selected, bool isMouseSelection);
void clearMouseSelection();

void itemPressed(TriggeredSource source);
Expand Down

0 comments on commit 3698eb5

Please sign in to comment.