Warning, /frameworks/kquickcharts/controls/Logging.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2019 Arjen Hiemstra <ahiemstra@heimr.nl> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 import QtQuick 2.12 0008 0009 pragma Singleton; 0010 0011 QtObject { 0012 id: log 0013 0014 property LoggingCategory generalCategory: LoggingCategory { 0015 name: "kf.quickcharts.general" 0016 defaultLogLevel: LoggingCategory.Warning 0017 } 0018 0019 property LoggingCategory deprecatedCategory: LoggingCategory { 0020 name: "kf.quickcharts.deprecated" 0021 defaultLogLevel: LoggingCategory.Warning 0022 } 0023 0024 function deprecated(item, entry, since, message) { 0025 console.warn(log.deprecatedCategory, "%1::%2 is deprecated (since %3): %4".arg(item).arg(entry).arg(since).arg(message)) 0026 } 0027 }