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

Some more ripple animations.

This commit is contained in:
John Preston
2016-12-02 22:16:35 +03:00
parent 8958ae0377
commit 2796c53542
50 changed files with 518 additions and 537 deletions

View File

@@ -38,6 +38,10 @@ Q_DECLARE_METATYPE(Ui::ShowWay);
namespace App {
void LambdaDelayed(int duration, base::lambda<void()> &&lambda) {
QTimer::singleShot(duration, base::lambda_slot(App::app(), std_::move(lambda)), SLOT(action()));
}
void sendBotCommand(PeerData *peer, UserData *bot, const QString &cmd, MsgId replyTo) {
if (auto m = main()) {
m->sendBotCommand(peer, bot, cmd, replyTo);