File indexing completed on 2024-05-12 15:57:02
0001 /* 0002 * SPDX-FileCopyrightText: 2019 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #ifndef KISFILEUTILS_H 0008 #define KISFILEUTILS_H 0009 0010 #include "kritaglobal_export.h" 0011 0012 0013 class QString; 0014 0015 namespace KritaUtils { 0016 0017 /** 0018 * @brief Resolve absolute file path from a file path and base dir 0019 * 0020 * If the @p filePath is absolute, just return this path, otherwise 0021 * try to merge @p baseDir and @p filePath to form an absolute file 0022 * path 0023 */ 0024 QString KRITAGLOBAL_EXPORT resolveAbsoluteFilePath(const QString &baseDir, const QString &filePath); 0025 0026 0027 } 0028 0029 #endif // KISFILEUTILS_H