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#include <QIODevice>
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") MARBLE_EXPORT Q_LOGGING_CATEGORY(MARBLE_LIB, "marble_lib") MARBLE_EXPORT
16 Q_LOGGING_CATEGORY(MARBLE_PLUGINS, "marble_plugins")
17
18 namespace Marble
19{
20 bool MarbleDebug::m_enabled = false;
21
22 bool MarbleDebug::isEnabled()
23 {
24 return MarbleDebug::m_enabled;
25 }
26
27 void MarbleDebug::setEnabled(bool enabled)
28 {
29 qCWarning(MARBLE_DEFAULT) << "Control of debug output using this function is no longer implemented, use the Qt logging settings";
30 MarbleDebug::m_enabled = enabled;
31 }
32
33} // 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 Mon Nov 18 2024 12:15:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.