2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Add some more actions to info profile.

This commit is contained in:
John Preston
2017-11-07 15:53:05 +04:00
parent 9f37820901
commit fcf2b9d1a7
12 changed files with 807 additions and 435 deletions

View File

@@ -22,10 +22,11 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
namespace Window {
class Controller;
struct PeerMenuOptions {
bool pinToggle = false;
bool fromChatsList = false;
bool showInfo = false;
bool search = false;
};
using PeerMenuCallback = base::lambda<QAction*(
@@ -33,6 +34,7 @@ using PeerMenuCallback = base::lambda<QAction*(
base::lambda<void()> handler)>;
void FillPeerMenu(
not_null<Controller*> controller,
not_null<PeerData*> peer,
const PeerMenuCallback &callback,
const PeerMenuOptions &options);