Fix application name following harbour policies

This commit is contained in:
Andrea Scarpino 2016-06-03 20:16:53 +02:00
parent 4662063e3c
commit 4b68423bdd

View file

@ -27,8 +27,8 @@ int main(int argc, char *argv[])
QScopedPointer<QGuiApplication> app(SailfishApp::application(argc, argv));
QScopedPointer<QQuickView> view(SailfishApp::createView());
QCoreApplication::setApplicationName(QStringLiteral("Papocchio"));
QCoreApplication::setOrganizationDomain(QStringLiteral("it.andreascarpino"));
QCoreApplication::setApplicationName(QStringLiteral("harbour-papocchio"));
QCoreApplication::setOrganizationDomain(QStringLiteral("andreascarpino.it"));
view->setSource(SailfishApp::pathTo("qml/Papocchio.qml"));
@ -53,7 +53,7 @@ int main(int argc, char *argv[])
QString papocchioDir()
{
const QDir papocchioDir(QStandardPaths::writableLocation(QStandardPaths::PicturesLocation)
+ QDir::separator() + QCoreApplication::applicationName());
+ QDir::separator() + "Papocchio");
if (!papocchioDir.exists()) {
if (!papocchioDir.mkpath(papocchioDir.absolutePath())) {