From 7bf926aeb3502712aa04b915e7b404b411b51599 Mon Sep 17 00:00:00 2001 From: David A Roberts Date: Thu, 7 Apr 2016 19:04:41 +1000 Subject: Allow Connections to be used in QML. --- connection.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'connection.cpp') diff --git a/connection.cpp b/connection.cpp index 01392848..5127dea8 100644 --- a/connection.cpp +++ b/connection.cpp @@ -44,6 +44,11 @@ Connection::Connection(QUrl server, QObject* parent) d->data = new ConnectionData(server); } +Connection::Connection() + : Connection(QUrl("https://matrix.org")) +{ +} + Connection::~Connection() { delete d; -- cgit v1.2.3