fixed metatypes declaration for 0.9.24 version

This commit is contained in:
John Preston 2016-02-16 16:33:33 +03:00
parent 80455492b0
commit 6a299e32d3
1 changed files with 3 additions and 3 deletions

View File

@ -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<TextLinkPtr>();