Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qsettings_mac.cpp File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

#include "qsettings.h"
#include "qsettings_p.h"
#include "qdatetime.h"
#include "qdir.h"
#include "qvarlengtharray.h"
#include "private/qcore_mac_p.h"
#include "qcoreapplication.h"
+ Include dependency graph for qsettings_mac.cpp:

Go to the source code of this file.

Classes

class  QMacSettingsPrivate
 

Enumerations

enum  RotateShift { Macify = 1 , Qtify = 2 }
 

Functions

static QString rotateSlashesDotsAndMiddots (const QString &key, int shift)
 
static QCFType< CFStringRef > macKey (const QString &key)
 
static QString qtKey (CFStringRef cfkey)
 
static QCFType< CFPropertyListRef > macValue (const QVariant &value)
 
static CFArrayRef macList (const QList< QVariant > &list)
 
static QVariant qtValue (CFPropertyListRef cfvalue)
 
static QString comify (const QString &organization)
 

Variables

static const CFStringRef hostNames [2] = { kCFPreferencesCurrentHost, kCFPreferencesAnyHost }
 
static const int numHostNames = 2
 

Enumeration Type Documentation

◆ RotateShift

Enumerator
Macify 
Qtify 

Definition at line 30 of file qsettings_mac.cpp.

Function Documentation

◆ comify()

static QString comify ( const QString & organization)
static

Definition at line 256 of file qsettings_mac.cpp.

References QString::append(), QString::at(), ch, i, QString::isEmpty(), QString::mid(), QString::replace(), QString::simplified(), QString::size(), and QString::toLower().

Referenced by QMacSettingsPrivate::QMacSettingsPrivate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ macKey()

static QCFType< CFStringRef > macKey ( const QString & key)
static

Definition at line 49 of file qsettings_mac.cpp.

References Macify, and rotateSlashesDotsAndMiddots().

Referenced by QMacSettingsPrivate::get(), QMacSettingsPrivate::remove(), and QMacSettingsPrivate::set().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ macList()

static CFArrayRef macList ( const QList< QVariant > & list)
static

Definition at line 61 of file qsettings_mac.cpp.

References QList< T >::at(), i, list, macValue(), and QList< T >::size().

Referenced by macValue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ macValue()

static QCFType< CFPropertyListRef > macValue ( const QVariant & value)
static

Definition at line 71 of file qsettings_mac.cpp.

References ba, QMap< Key, T >::begin(), contains(), QByteArray::data(), dateTime, QMap< Key, T >::end(), QMap< Key, T >::keyBegin(), QMap< Key, T >::keyEnd(), Qt::LocalTime, macList(), map, QMap< Key, T >::size(), QByteArray::size(), QDateTime::timeSpec(), and QSettingsPrivate::variantToString().

Referenced by macList(), and QMacSettingsPrivate::set().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qtKey()

static QString qtKey ( CFStringRef cfkey)
static

Definition at line 54 of file qsettings_mac.cpp.

References Qtify, and rotateSlashesDotsAndMiddots().

Referenced by QMacSettingsPrivate::QMacSettingsPrivate(), QMacSettingsPrivate::children(), QKeySequencePrivate::decodeString(), QT_BEGIN_NAMESPACE::findKeyTextByKeyId(), QQnxScreenEventHandler::injectKeyboardEvent(), keysymToQtKey_internal(), QWaylandKeyboard::keyToScanCode(), operator<<(), QXkbCommon::possibleKeyCombinations(), QWaylandSeat::sendKeyEvent(), and QXkbCommon::toKeysym().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qtValue()

static QVariant qtValue ( CFPropertyListRef cfvalue)
static

Definition at line 159 of file qsettings_mac.cpp.

References QList< T >::append(), QByteArray::constData(), d, QByteArray::detach(), QString::fromUtf8(), i, QMap< Key, T >::insert(), j, keys, list, map, qtValue(), QList< T >::reserve(), QByteArray::size(), QByteArray::startsWith(), str, QSettingsPrivate::stringToVariant(), QVariant::toStringList(), and variant.

Referenced by QMacSettingsPrivate::get(), and qtValue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rotateSlashesDotsAndMiddots()

static QString rotateSlashesDotsAndMiddots ( const QString & key,
int shift )
static

Definition at line 32 of file qsettings_mac.cpp.

References i, j, shift(), and QLatin1Char::unicode().

Referenced by macKey(), and qtKey().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ hostNames

const CFStringRef hostNames[2] = { kCFPreferencesCurrentHost, kCFPreferencesAnyHost }
static

◆ numHostNames

const int numHostNames = 2
static