Commit 78adca4e authored by Dusko Angirevic's avatar Dusko Angirevic

v1.0.0

parent 28fad27e
......@@ -13,7 +13,7 @@ Name: harbour-tooter
%{!?qtc_make:%define qtc_make make}
%{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: Tooter
Version: 0.2.8
Version: 1.0.0
Release: 0
Group: Qt/Qt
License: LICENSE
......
Name: harbour-tooter
Summary: Tooter
Version: 0.2.8
Version: 1.0.0
Release: 0
# The contents of the Group field should be one of the groups listed here:
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
......
......@@ -13,10 +13,10 @@
#include <QCoreApplication>
#include <QtNetwork>
//#include <QtSystemInfo/QDeviceInfo>
//#include "filedownloader.h"
#include "filedownloader.h"
#include "imageuploader.h"
//#include "notifications.h"
//#include "dbus.h"
#include "notifications.h"
#include "dbus.h"
int main(int argc, char *argv[])
{
......@@ -25,16 +25,16 @@ int main(int argc, char *argv[])
//QQmlContext *context = view.data()->rootContext();
QQmlEngine* engine = view->engine();
//FileDownloader *fd = new FileDownloader(engine);
//view->rootContext()->setContextProperty("FileDownloader", fd);
FileDownloader *fd = new FileDownloader(engine);
view->rootContext()->setContextProperty("FileDownloader", fd);
qmlRegisterType<ImageUploader>("harbour.tooter.Uploader", 1, 0, "ImageUploader");
//Notifications *no = new Notifications();
//view->rootContext()->setContextProperty("Notifications", no);
Notifications *no = new Notifications();
view->rootContext()->setContextProperty("Notifications", no);
QObject::connect(engine, SIGNAL(quit()), app.data(), SLOT(quit()));
//Dbus *dbus = new Dbus();
//view->rootContext()->setContextProperty("Dbus", dbus);
Dbus *dbus = new Dbus();
view->rootContext()->setContextProperty("Dbus", dbus);
view->setSource(SailfishApp::pathTo("qml/harbour-tooter.qml"));
view->show();
......
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