aboutsummaryrefslogtreecommitdiff
path: root/connection.cpp
diff options
context:
space:
mode:
authorDavid A Roberts <d@vidr.cc>2016-04-07 19:04:41 +1000
committerDavid A Roberts <d@vidr.cc>2016-04-07 19:04:41 +1000
commit7bf926aeb3502712aa04b915e7b404b411b51599 (patch)
tree24524d0cebf89d17c4cef0b0a807e80976f979a3 /connection.cpp
parentaeb45da77273f108102149005a93db29a2db5a16 (diff)
downloadlibquotient-7bf926aeb3502712aa04b915e7b404b411b51599.tar.gz
libquotient-7bf926aeb3502712aa04b915e7b404b411b51599.zip
Allow Connections to be used in QML.
Diffstat (limited to 'connection.cpp')
-rw-r--r--connection.cpp5
1 files changed, 5 insertions, 0 deletions
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;