MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / SetActionText

Function SetActionText

Telegram/SourceFiles/window/window_peer_menu.cpp:231–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229});
230
231void SetActionText(not_null<QAction*> action, rpl::producer<QString> &&text) {
232 const auto lifetime = Ui::CreateChild<rpl::lifetime>(action.get());
233 std::move(
234 text
235 ) | rpl::on_next([=](const QString &actionText) {
236 action->setText(actionText);
237 }, *lifetime);
238}
239
240void MarkAsReadChatList(not_null<Dialogs::MainList*> list) {
241 auto mark = std::vector<not_null<History*>>();

Callers 2

addToggleArchiveMethod · 0.85
addBlockUserMethod · 0.85

Calls 2

getMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected