File indexing completed on 2024-04-21 03:49:41
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2009 Patrick Spendrin <ps_ml@gmx.de> 0004 // 0005 0006 #include "MarbleDebug.h" 0007 0008 0009 /** 0010 * All of the logging categories supported by Marble. 0011 * 0012 * Add any new logging categories as required here. 0013 * See @c MarbleDebug.h for more information. 0014 */ 0015 MARBLE_EXPORT Q_LOGGING_CATEGORY(MARBLE_DEFAULT, "marble_default") 0016 MARBLE_EXPORT Q_LOGGING_CATEGORY(MARBLE_LIB, "marble_lib") 0017 MARBLE_EXPORT Q_LOGGING_CATEGORY(MARBLE_PLUGINS, "marble_plugins") 0018 0019 0020 namespace Marble 0021 { 0022 bool MarbleDebug::m_enabled = false; 0023 0024 bool MarbleDebug::isEnabled() 0025 { 0026 return MarbleDebug::m_enabled; 0027 } 0028 0029 void MarbleDebug::setEnabled(bool enabled) 0030 { 0031 qCWarning(MARBLE_DEFAULT) << "Control of debug output using this function is no longer implemented, use the Qt logging settings"; 0032 MarbleDebug::m_enabled = enabled; 0033 } 0034 0035 } // namespace Marble