Kirigami-addons

treeviewplugin.h
1/*
2 * SPDX-FileCopyrightText: 2020 Marco Martin <mart@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#pragma once
8
9#include <QQmlExtensionPlugin>
10
11class TreeViewPlugin : public QQmlExtensionPlugin
12{
14 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
15
16public:
17 TreeViewPlugin(QObject *parent = nullptr);
18 void registerTypes(const char *uri) override;
19
20private:
21 QUrl componentUrl(const QString &fileName) const;
22 QString resolveFilePath(const QString &path) const
23 {
24 return baseUrl().toLocalFile() + QLatin1Char('/') + path;
25 }
26 QString resolveFileUrl(const QString &filePath) const
27 {
28 return baseUrl().toString() + QLatin1Char('/') + filePath;
29 }
30 QStringList m_stylesFallbackChain;
31};
QString path(const QString &relativePath)
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:50 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.