Marble

MarbleDebug.cpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2//
3// SPDX-FileCopyrightText: 2009 Patrick Spendrin <ps_ml@gmx.de>
4//
5
6#include "MarbleDebug.h"
7
8
9/**
10 * All of the logging categories supported by Marble.
11 *
12 * Add any new logging categories as required here.
13 * See @c MarbleDebug.h for more information.
14 */
15MARBLE_EXPORT Q_LOGGING_CATEGORY(MARBLE_DEFAULT, "marble_default")
16MARBLE_EXPORT Q_LOGGING_CATEGORY(MARBLE_LIB, "marble_lib")
17MARBLE_EXPORT Q_LOGGING_CATEGORY(MARBLE_PLUGINS, "marble_plugins")
18
19
20namespace Marble
21{
22bool MarbleDebug::m_enabled = false;
23
24bool MarbleDebug::isEnabled()
25{
26 return MarbleDebug::m_enabled;
27}
28
29void MarbleDebug::setEnabled(bool enabled)
30{
31 qCWarning(MARBLE_DEFAULT) << "Control of debug output using this function is no longer implemented, use the Qt logging settings";
32 MarbleDebug::m_enabled = enabled;
33}
34
35} // namespace Marble
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:54:17 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.