Fix application name following harbour policies
This commit is contained in:
parent
aa83c8519d
commit
eee60e9821
1 changed files with 3 additions and 3 deletions
|
@ -27,8 +27,8 @@ int main(int argc, char *argv[])
|
||||||
QScopedPointer<QGuiApplication> app(SailfishApp::application(argc, argv));
|
QScopedPointer<QGuiApplication> app(SailfishApp::application(argc, argv));
|
||||||
QScopedPointer<QQuickView> view(SailfishApp::createView());
|
QScopedPointer<QQuickView> view(SailfishApp::createView());
|
||||||
|
|
||||||
QCoreApplication::setApplicationName(QStringLiteral("Papocchio"));
|
QCoreApplication::setApplicationName(QStringLiteral("harbour-papocchio"));
|
||||||
QCoreApplication::setOrganizationDomain(QStringLiteral("it.andreascarpino"));
|
QCoreApplication::setOrganizationDomain(QStringLiteral("andreascarpino.it"));
|
||||||
|
|
||||||
view->setSource(SailfishApp::pathTo("qml/Papocchio.qml"));
|
view->setSource(SailfishApp::pathTo("qml/Papocchio.qml"));
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ int main(int argc, char *argv[])
|
||||||
QString papocchioDir()
|
QString papocchioDir()
|
||||||
{
|
{
|
||||||
const QDir papocchioDir(QStandardPaths::writableLocation(QStandardPaths::PicturesLocation)
|
const QDir papocchioDir(QStandardPaths::writableLocation(QStandardPaths::PicturesLocation)
|
||||||
+ QDir::separator() + QCoreApplication::applicationName());
|
+ QDir::separator() + "Papocchio");
|
||||||
|
|
||||||
if (!papocchioDir.exists()) {
|
if (!papocchioDir.exists()) {
|
||||||
if (!papocchioDir.mkpath(papocchioDir.absolutePath())) {
|
if (!papocchioDir.mkpath(papocchioDir.absolutePath())) {
|
||||||
|
|
Loading…
Reference in a new issue