Commit bf2e9702 authored by Laurent Montel's avatar Laurent Montel 😁

Define Q_DECLARE_METATYPE

parent d8a837e0
......@@ -40,7 +40,7 @@ using namespace MessageViewer;
class MessageViewer::WebHitTestResultPrivate
{
public:
WebHitTestResultPrivate(const QPoint &pos, const QUrl &url, const QVariant &result)
WebHitTestResultPrivate(const QPoint &pos = QPoint(), const QUrl &url = QUrl(), const QVariant &result = QVariant())
: m_isNull(true),
m_isContentEditable(false),
m_isContentSelected(false),
......@@ -101,6 +101,12 @@ void WebHitTestResultPrivate::init(const QVariantMap &map)
m_mediaUrl = m_pageUrl.resolved(m_mediaUrl);
}
}
WebHitTestResult::WebHitTestResult()
: d(new WebHitTestResultPrivate)
{
}
WebHitTestResult::WebHitTestResult(const QPoint &pos, const QUrl &url, const QVariant &result)
: d(new WebHitTestResultPrivate(pos, url, result))
{
......
......@@ -47,6 +47,7 @@ class WebHitTestResultPrivate;
class MESSAGEVIEWER_EXPORT WebHitTestResult
{
public:
WebHitTestResult();
WebHitTestResult(const QPoint &pos, const QUrl &url, const QVariant &result);
~WebHitTestResult();
......@@ -68,4 +69,5 @@ private:
WebHitTestResultPrivate *const d;
};
}
Q_DECLARE_METATYPE(MessageViewer::WebHitTestResult)
#endif // WEBHITTESTRESULT_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment