File indexing completed on 2024-05-05 16:07:16
0001 /* 0002 SPDX-FileCopyrightText: 2016 David Edmundson <davidedmundson@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef PLASMAQTQUICKSETTINGS_H 0008 #define PLASMAQTQUICKSETTINGS_H 0009 0010 #include "quickaddons_export.h" 0011 0012 #if QUICKADDONS_ENABLE_DEPRECATED_SINCE(5, 93) 0013 namespace KQuickAddons 0014 { 0015 /** 0016 * @namespace KQuickAddons::QtQuickSettings 0017 */ 0018 namespace QtQuickSettings 0019 { 0020 /** 0021 * Load settings from the appConfig (app + kdeglobals) which relate to QtQuick rendering. 0022 * This will then set relevant default QWindow and QSurfaceFormat flags, or in some cases environment variables 0023 * 0024 * This function must be called at the start of your application before any windows are created, 0025 * but after an instance of QGuiApplication is already available. 0026 * 0027 * @since 5.26 0028 * @deprecated since 5.93, With Plasma 5.25 the QtQuickSettings are applied as part of the Plasma integration plugin 0029 */ 0030 QUICKADDONS_DEPRECATED_VERSION(5, 93, "With Plasma 5.25 the QtQuickSettings are applied as part of the Plasma integration plugin") 0031 QUICKADDONS_EXPORT void init(); 0032 0033 } 0034 } 0035 0036 #endif 0037 #endif