mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
fixed metatypes declaration for 0.9.24 version
This commit is contained in:
@@ -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>();
|
||||
|
Reference in New Issue
Block a user