File indexing completed on 2024-05-12 15:42:38

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 
0012 #include "kirigami2_export.h"
0013 
0014 class QUrl;
0015 
0016 namespace Kirigami
0017 {
0018 class KIRIGAMI2_EXPORT StyleSelector
0019 {
0020 public:
0021     static QString style();
0022     static QStringList styleChain();
0023 
0024     static QUrl componentUrl(const QString &fileName);
0025 
0026     static void setBaseUrl(const QUrl &baseUrl);
0027 
0028     static QString resolveFilePath(const QString &path);
0029     static QString resolveFileUrl(const QString &path);
0030 
0031 private:
0032     static QUrl s_baseUrl;
0033     static QStringList s_styleChain;
0034 };
0035 
0036 }
0037 
0038 #endif // STYLESELECTOR_H