7#include "MarbleDebug.h"
19QString Settings::organizationName()
const
21 return m_organizationName;
24void Settings::setOrganizationName(
const QString &organization)
26 m_organizationName = organization;
29QString Settings::applicationName()
const
31 return m_applicationName;
34void Settings::setApplicationName(
const QString &application)
36 m_applicationName = application;
39bool Settings::debugOutputEnabled()
const
41 return Marble::MarbleDebug::isEnabled();
46 QSettings settings(m_organizationName, m_applicationName);
47 settings.beginGroup(group);
48 return settings.value(key, value);
53 QSettings settings(m_organizationName, m_applicationName);
54 settings.beginGroup(group);
55 settings.setValue(key, value);
61 QSettings settings(m_organizationName, m_applicationName);
62 settings.beginGroup(group);
63 settings.remove(value);
67void Settings::setDebugOutputEnabled(
bool debugOutputEnabled)
69 if (Marble::MarbleDebug::isEnabled() == debugOutputEnabled) {
73 Marble::MarbleDebug::setEnabled(debugOutputEnabled);
74 Q_EMIT debugOutputEnabledChanged(Marble::MarbleDebug::isEnabled());
77#include "moc_Settings.cpp"
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:37:03 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.