summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qsettings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/io/qsettings.cpp')
-rw-r--r--src/corelib/io/qsettings.cpp272
1 files changed, 0 insertions, 272 deletions
diff --git a/src/corelib/io/qsettings.cpp b/src/corelib/io/qsettings.cpp
index 79b2728f58..7e40e5f73b 100644
--- a/src/corelib/io/qsettings.cpp
+++ b/src/corelib/io/qsettings.cpp
@@ -3547,278 +3547,6 @@ QSettings::Format QSettings::registerFormat(const QString &extension, ReadFunc r
return QSettings::Format((int)QSettings::CustomFormat1 + index);
}
-#ifdef QT3_SUPPORT
-void QSettings::setPath_helper(Scope scope, const QString &organization, const QString &application)
-{
- Q_D(QSettings);
- if (d->pendingChanges)
- d->flush();
- QSettingsPrivate *oldPriv = d;
- QSettingsPrivate *newPriv = QSettingsPrivate::create(oldPriv->format, scope, organization, application);
- static_cast<QObjectPrivate &>(*newPriv) = static_cast<QObjectPrivate &>(*oldPriv); // copy the QObject stuff over (hack)
- d_ptr.reset(newPriv);
-}
-
-/*! \fn bool QSettings::writeEntry(const QString &key, bool value)
-
- Sets the value of setting \a key to \a value.
-
- Use setValue() instead.
-*/
-
-/*! \fn bool QSettings::writeEntry(const QString &key, double value)
-
- \overload
-*/
-
-/*! \fn bool QSettings::writeEntry(const QString &key, int value)
-
- \overload
-*/
-
-/*! \fn bool QSettings::writeEntry(const QString &key, const char *value)
-
- \overload
-*/
-
-/*! \fn bool QSettings::writeEntry(const QString &key, const QString &value)
-
- \overload
-*/
-
-/*! \fn bool QSettings::writeEntry(const QString &key, const QStringList &value)
-
- \overload
-*/
-
-/*! \fn bool QSettings::writeEntry(const QString &key, const QStringList &value, QChar separator)
-
- \overload
-
- Use setValue(\a key, \a value) instead. You don't need \a separator.
-*/
-
-/*! \fn QStringList QSettings::readListEntry(const QString &key, bool *ok = 0)
-
- Returns the value of setting \a key converted to a QStringList.
-
- If \a ok is not 0, *\a{ok} is set to true if the key exists,
- otherwise *\a{ok} is set to false.
-
- Use value() instead.
-
- \oldcode
- bool ok;
- QStringList list = settings.readListEntry("recentFiles", &ok);
- \newcode
- bool ok = settings.contains("recentFiles");
- QStringList list = settings.value("recentFiles").toStringList();
- \endcode
-*/
-
-/*! \fn QStringList QSettings::readListEntry(const QString &key, QChar separator, bool *ok)
-
- Returns the value of setting \a key converted to a QStringList.
- \a separator is ignored.
-
- If \a ok is not 0, *\a{ok} is set to true if the key exists,
- otherwise *\a{ok} is set to false.
-
- Use value() instead.
-
- \oldcode
- bool ok;
- QStringList list = settings.readListEntry("recentFiles", ":", &ok);
- \newcode
- bool ok = settings.contains("recentFiles");
- QStringList list = settings.value("recentFiles").toStringList();
- \endcode
-*/
-
-/*! \fn QString QSettings::readEntry(const QString &key, const QString &defaultValue, bool *ok)
-
- Returns the value for setting \a key converted to a QString. If
- the setting doesn't exist, returns \a defaultValue.
-
- If \a ok is not 0, *\a{ok} is set to true if the key exists,
- otherwise *\a{ok} is set to false.
-
- Use value() instead.
-
- \oldcode
- bool ok;
- QString str = settings.readEntry("userName", "administrator", &ok);
- \newcode
- bool ok = settings.contains("userName");
- QString str = settings.value("userName", "administrator").toString();
- \endcode
-*/
-
-/*! \fn int QSettings::readNumEntry(const QString &key, int defaultValue, bool *ok)
-
- Returns the value for setting \a key converted to an \c int. If
- the setting doesn't exist, returns \a defaultValue.
-
- If \a ok is not 0, *\a{ok} is set to true if the key exists,
- otherwise *\a{ok} is set to false.
-
- Use value() instead.
-
- \oldcode
- bool ok;
- int max = settings.readNumEntry("maxConnections", 30, &ok);
- \newcode
- bool ok = settings.contains("maxConnections");
- int max = settings.value("maxConnections", 30).toInt();
- \endcode
-*/
-
-/*! \fn double QSettings::readDoubleEntry(const QString &key, double defaultValue, bool *ok)
-
- Returns the value for setting \a key converted to a \c double. If
- the setting doesn't exist, returns \a defaultValue.
-
- If \a ok is not 0, *\a{ok} is set to true if the key exists,
- otherwise *\a{ok} is set to false.
-
- Use value() instead.
-
- \oldcode
- bool ok;
- double pi = settings.readDoubleEntry("pi", 3.141592, &ok);
- \newcode
- bool ok = settings.contains("pi");
- double pi = settings.value("pi", 3.141592).toDouble();
- \endcode
-*/
-
-/*! \fn bool QSettings::readBoolEntry(const QString &key, bool defaultValue, bool *ok)
-
- Returns the value for setting \a key converted to a \c bool. If
- the setting doesn't exist, returns \a defaultValue.
-
- If \a ok is not 0, *\a{ok} is set to true if the key exists,
- otherwise *\a{ok} is set to false.
-
- Use value() instead.
-
- \oldcode
- bool ok;
- bool grid = settings.readBoolEntry("showGrid", true, &ok);
- \newcode
- bool ok = settings.contains("showGrid");
- bool grid = settings.value("showGrid", true).toBool();
- \endcode
-*/
-
-/*! \fn bool QSettings::removeEntry(const QString &key)
-
- Use remove() instead.
-*/
-
-/*! \enum QSettings::System
- \compat
-
- \value Unix Unix systems (X11 and Embedded Linux)
- \value Windows Microsoft Windows systems
- \value Mac Mac OS X systems
-
- \sa insertSearchPath(), removeSearchPath()
-*/
-
-/*! \fn void QSettings::insertSearchPath(System system, const QString &path)
-
- This function is implemented as a no-op. It is provided for
- source compatibility with Qt 3. The new QSettings class has no
- concept of "search path".
-*/
-
-/*! \fn void QSettings::removeSearchPath(System system, const QString &path)
-
- This function is implemented as a no-op. It is provided for
- source compatibility with Qt 3. The new QSettings class has no
- concept of "search path".
-*/
-
-/*! \fn void QSettings::setPath(const QString &organization, const QString &application, \
- Scope scope)
-
- Specifies the \a organization, \a application, and \a scope to
- use by the QSettings object.
-
- Use the appropriate constructor instead, with QSettings::UserScope
- instead of QSettings::User and QSettings::SystemScope instead of
- QSettings::Global.
-
- \oldcode
- QSettings settings;
- settings.setPath("twikimaster.com", "Kanooth", QSettings::Global);
- \newcode
- QSettings settings(QSettings::SystemScope, "twikimaster.com", "Kanooth");
- \endcode
-*/
-
-/*! \fn void QSettings::resetGroup()
-
- Sets the current group to be the empty string.
-
- Use endGroup() instead (possibly multiple times).
-
- \oldcode
- QSettings settings;
- settings.beginGroup("mainWindow");
- settings.beginGroup("leftPanel");
- ...
- settings.resetGroup();
- \newcode
- QSettings settings;
- settings.beginGroup("mainWindow");
- settings.beginGroup("leftPanel");
- ...
- settings.endGroup();
- settings.endGroup();
- \endcode
-*/
-
-/*! \fn QStringList QSettings::entryList(const QString &key) const
-
- Returns a list of all sub-keys of \a key.
-
- Use childKeys() instead.
-
- \oldcode
- QSettings settings;
- QStringList keys = settings.entryList("cities");
- ...
- \newcode
- QSettings settings;
- settings.beginGroup("cities");
- QStringList keys = settings.childKeys();
- ...
- settings.endGroup();
- \endcode
-*/
-
-/*! \fn QStringList QSettings::subkeyList(const QString &key) const
-
- Returns a list of all sub-keys of \a key.
-
- Use childGroups() instead.
-
- \oldcode
- QSettings settings;
- QStringList groups = settings.entryList("cities");
- ...
- \newcode
- QSettings settings;
- settings.beginGroup("cities");
- QStringList groups = settings.childKeys();
- ...
- settings.endGroup();
- \endcode
-*/
-#endif
-
QT_END_NAMESPACE
#endif // QT_NO_SETTINGS