From 6a299e32d31001aad32f90ec9b1e76ef8868b898 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 16 Feb 2016 16:33:33 +0300 Subject: [PATCH] fixed metatypes declaration for 0.9.24 version --- Telegram/SourceFiles/facades.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/facades.cpp b/Telegram/SourceFiles/facades.cpp index 6f74d9021..e6b3c22f0 100644 --- a/Telegram/SourceFiles/facades.cpp +++ b/Telegram/SourceFiles/facades.cpp @@ -26,6 +26,9 @@ Copyright (c) 2014-2016 John Preston, https://desktop.telegram.org #include "layerwidget.h" #include "lang.h" +Q_DECLARE_METATYPE(TextLinkPtr); +Q_DECLARE_METATYPE(Qt::MouseButton); + namespace App { void sendBotCommand(const QString &cmd, MsgId replyTo) { @@ -74,9 +77,6 @@ namespace App { } } - Q_DECLARE_METATYPE(TextLinkPtr); - Q_DECLARE_METATYPE(Qt::MouseButton); - void activateTextLink(TextLinkPtr link, Qt::MouseButton button) { if (Window *w = wnd()) { qRegisterMetaType();