/* * This file is part of the Flowee project * Copyright (C) 2021 Tom Zander * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ /* * This is a little method that is auto-populated by cmake * to have the directory relevant to the users config in order * to allow fetching the QML files from the git checkout without * the need to recompile. */ #ifndef FLOWEE_PAY_CONFIG_H #define FLOWEE_PAY_CONFIG_H #cmakedefine01 local_qml #cmakedefine QML_PATH "@QML_PATH@" #include void handleLocalQml(QQmlApplicationEngine &engine) { #if local_qml static_assert(sizeof QML_PATH > 0, "FAILED PATH"); engine.setBaseUrl(QUrl(QML_PATH)); #else engine.setBaseUrl(QUrl("qrc:")); #endif } #endif