File indexing completed on 2024-05-05 03:56:27
0001 /* 0002 * SPDX-FileCopyrightText: 2021 Arjen Hiemstra <ahiemstra@heimr.nl> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef STYLESELECTOR_H 0008 #define STYLESELECTOR_H 0009 0010 #include <QStringList> 0011 #include <QUrl> 0012 0013 #include "kirigamiplatform_export.h" 0014 0015 class QUrl; 0016 0017 namespace Kirigami 0018 { 0019 namespace Platform 0020 { 0021 0022 class KIRIGAMIPLATFORM_EXPORT StyleSelector 0023 { 0024 public: 0025 static QString style(); 0026 static QStringList styleChain(); 0027 0028 static QUrl componentUrl(const QString &fileName); 0029 0030 static void setBaseUrl(const QUrl &baseUrl); 0031 0032 static QString resolveFilePath(const QString &path); 0033 static QString resolveFileUrl(const QString &path); 0034 0035 private: 0036 inline static QUrl s_baseUrl; 0037 inline static QStringList s_styleChain; 0038 }; 0039 0040 } 0041 } 0042 0043 #endif // STYLESELECTOR_H