Kirigami2

styleselector.h
1/*
2 * SPDX-FileCopyrightText: 2021 Arjen Hiemstra <ahiemstra@heimr.nl>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef STYLESELECTOR_H
8#define STYLESELECTOR_H
9
10#include <QStringList>
11#include <QUrl>
12
13#include "kirigamiplatform_export.h"
14
15class QUrl;
16
17namespace Kirigami
18{
19namespace Platform
20{
21
22class KIRIGAMIPLATFORM_EXPORT StyleSelector
23{
24public:
25 static QString style();
26 static QStringList styleChain();
27
28 static QUrl componentUrl(const QString &fileName);
29
30 static void setBaseUrl(const QUrl &baseUrl);
31
32 static QString resolveFilePath(const QString &path);
33 static QString resolveFileUrl(const QString &path);
34
35private:
36 inline static QUrl s_baseUrl;
37 inline static QStringList s_styleChain;
38};
39
40}
41}
42
43#endif // STYLESELECTOR_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:52 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.