kapptemplate
Go to the documentation of this file.
7 #include <QtCore/QFile>
12 SettingsHelper() : q(0) {}
13 ~SettingsHelper() {
delete q; }
16 K_GLOBAL_STATIC(SettingsHelper, s_globalSettings)
19 if (!s_globalSettings->q) {
21 s_globalSettings->q->readConfig();
24 return s_globalSettings->q;
30 Q_ASSERT(!s_globalSettings->q);
31 s_globalSettings->q =
this;
32 setCurrentGroup( QLatin1String(
"Preferences" ) );
34 KConfigSkeleton::ItemInt *itemNewtab;
35 itemNewtab =
new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String(
"newtab" ),
mNewtab );
36 addItem( itemNewtab, QLatin1String(
"newtab" ) );
41 if (!s_globalSettings.isDestroyed()) {
42 s_globalSettings->q = 0;
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:23 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.