This commit is contained in:
Dusko Angirevic 2018-10-25 15:49:44 +02:00
parent 28fad27ea5
commit 78adca4e1f
4 changed files with 13 additions and 11 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*.user

View file

@ -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

View file

@ -1,6 +1,6 @@
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

View file

@ -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();