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_make:%define qtc_make make}
%{?qtc_builddir:%define _builddir %qtc_builddir} %{?qtc_builddir:%define _builddir %qtc_builddir}
Summary: Tooter Summary: Tooter
Version: 0.2.8 Version: 1.0.0
Release: 0 Release: 0
Group: Qt/Qt Group: Qt/Qt
License: LICENSE License: LICENSE

View file

@ -1,6 +1,6 @@
Name: harbour-tooter Name: harbour-tooter
Summary: Tooter Summary: Tooter
Version: 0.2.8 Version: 1.0.0
Release: 0 Release: 0
# The contents of the Group field should be one of the groups listed here: # The contents of the Group field should be one of the groups listed here:
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS # https://github.com/mer-tools/spectacle/blob/master/data/GROUPS

View file

@ -13,10 +13,10 @@
#include <QCoreApplication> #include <QCoreApplication>
#include <QtNetwork> #include <QtNetwork>
//#include <QtSystemInfo/QDeviceInfo> //#include <QtSystemInfo/QDeviceInfo>
//#include "filedownloader.h" #include "filedownloader.h"
#include "imageuploader.h" #include "imageuploader.h"
//#include "notifications.h" #include "notifications.h"
//#include "dbus.h" #include "dbus.h"
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
@ -25,16 +25,16 @@ int main(int argc, char *argv[])
//QQmlContext *context = view.data()->rootContext(); //QQmlContext *context = view.data()->rootContext();
QQmlEngine* engine = view->engine(); QQmlEngine* engine = view->engine();
//FileDownloader *fd = new FileDownloader(engine); FileDownloader *fd = new FileDownloader(engine);
//view->rootContext()->setContextProperty("FileDownloader", fd); view->rootContext()->setContextProperty("FileDownloader", fd);
qmlRegisterType<ImageUploader>("harbour.tooter.Uploader", 1, 0, "ImageUploader"); qmlRegisterType<ImageUploader>("harbour.tooter.Uploader", 1, 0, "ImageUploader");
//Notifications *no = new Notifications(); Notifications *no = new Notifications();
//view->rootContext()->setContextProperty("Notifications", no); view->rootContext()->setContextProperty("Notifications", no);
QObject::connect(engine, SIGNAL(quit()), app.data(), SLOT(quit())); QObject::connect(engine, SIGNAL(quit()), app.data(), SLOT(quit()));
//Dbus *dbus = new Dbus(); Dbus *dbus = new Dbus();
//view->rootContext()->setContextProperty("Dbus", dbus); view->rootContext()->setContextProperty("Dbus", dbus);
view->setSource(SailfishApp::pathTo("qml/harbour-tooter.qml")); view->setSource(SailfishApp::pathTo("qml/harbour-tooter.qml"));
view->show(); view->show();