Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtpropertymanager.cpp File Reference

(21d85c01b1ed1b9b3f00897330a441575fc3e459)

#include "qtpropertymanager_p.h"
#include "qtpropertybrowserutils_p.h"
#include <QtCore/QDateTime>
#include <QtCore/QHash>
#include <QtCore/QLocale>
#include <QtCore/QMap>
#include <QtCore/QMetaEnum>
#include <QtCore/QRegularExpression>
#include <QtCore/QTimer>
#include <QtGui/QFontDatabase>
#include <QtGui/QIcon>
#include <QtGui/QPainter>
#include <QtWidgets/QApplication>
#include <QtWidgets/QLabel>
#include <QtWidgets/QStyle>
#include <QtWidgets/QStyleOption>
#include <limits>
#include <limits.h>
#include <float.h>
#include <algorithm>
#include <utility>
#include "moc_qtpropertymanager_p.cpp"
#include "qtpropertymanager.moc"
Include dependency graph for qtpropertymanager.cpp:

Go to the source code of this file.

Classes

class  QtMetaEnumWrapper
class  QtMetaEnumProvider
class  QtIntPropertyManagerPrivate
struct  QtIntPropertyManagerPrivate::Data
class  QtDoublePropertyManagerPrivate
struct  QtDoublePropertyManagerPrivate::Data
class  QtStringPropertyManagerPrivate
struct  QtStringPropertyManagerPrivate::Data
class  QtBoolPropertyManagerPrivate
class  QtDatePropertyManagerPrivate
struct  QtDatePropertyManagerPrivate::Data
class  QtTimePropertyManagerPrivate
class  QtDateTimePropertyManagerPrivate
class  QtKeySequencePropertyManagerPrivate
class  QtCharPropertyManagerPrivate
class  QtLocalePropertyManagerPrivate
class  QtPointPropertyManagerPrivate
class  QtPointFPropertyManagerPrivate
struct  QtPointFPropertyManagerPrivate::Data
class  QtSizePropertyManagerPrivate
struct  QtSizePropertyManagerPrivate::Data
class  QtSizeFPropertyManagerPrivate
struct  QtSizeFPropertyManagerPrivate::Data
class  QtRectPropertyManagerPrivate
struct  QtRectPropertyManagerPrivate::Data
class  QtRectFPropertyManagerPrivate
struct  QtRectFPropertyManagerPrivate::Data
class  QtEnumPropertyManagerPrivate
struct  QtEnumPropertyManagerPrivate::Data
class  QtFlagPropertyManagerPrivate
struct  QtFlagPropertyManagerPrivate::Data
class  QtSizePolicyPropertyManagerPrivate
class  QtFontPropertyManagerPrivate
class  QtColorPropertyManagerPrivate
class  QtCursorPropertyManagerPrivate

Typedefs

using DisambiguatedTranslation = std::pair<const char *, const char *>

Functions

static int indexOfFontWeight (QFont::Weight w)
static QFont::Weight weightFromIndex (int i)
template<class PrivateData, class Value>
static void setSimpleMinimumData (PrivateData *data, const Value &minVal)
template<class PrivateData, class Value>
static void setSimpleMaximumData (PrivateData *data, const Value &maxVal)
template<class PrivateData, class Value>
static void setSizeMinimumData (PrivateData *data, const Value &newMinVal)
template<class PrivateData, class Value>
static void setSizeMaximumData (PrivateData *data, const Value &newMaxVal)
template<class SizeValue>
static SizeValue qBoundSize (const SizeValue &minVal, const SizeValue &val, const SizeValue &maxVal)
QSize qBound (QSize minVal, QSize val, QSize maxVal)
QSizeF qBound (QSizeF minVal, QSizeF val, QSizeF maxVal)
template<class Value, class PrivateData>
static Value getData (const QHash< const QtProperty *, PrivateData > &propertyMap, Value PrivateData::*data, const QtProperty *property, const Value &defaultValue=Value())
template<class Value, class PrivateData>
static Value getValue (const QHash< const QtProperty *, PrivateData > &propertyMap, const QtProperty *property, const Value &defaultValue=Value())
template<class Value, class PrivateData>
static Value getMinimum (const QHash< const QtProperty *, PrivateData > &propertyMap, const QtProperty *property, const Value &defaultValue=Value())
template<class Value, class PrivateData>
static Value getMaximum (const QHash< const QtProperty *, PrivateData > &propertyMap, const QtProperty *property, const Value &defaultValue=Value())
template<class ValueChangeParameter, class Value, class PropertyManager>
static void setSimpleValue (QHash< const QtProperty *, Value > &propertyMap, PropertyManager *manager, void(PropertyManager::*propertyChangedSignal)(QtProperty *), void(PropertyManager::*valueChangedSignal)(QtProperty *, ValueChangeParameter), QtProperty *property, const Value &val)
template<class ValueChangeParameter, class PropertyManagerPrivate, class PropertyManager, class Value>
static void setValueInRange (PropertyManager *manager, PropertyManagerPrivate *managerPrivate, void(PropertyManager::*propertyChangedSignal)(QtProperty *), void(PropertyManager::*valueChangedSignal)(QtProperty *, ValueChangeParameter), QtProperty *property, const Value &val, void(PropertyManagerPrivate::*setSubPropertyValue)(QtProperty *, ValueChangeParameter))
template<class ValueChangeParameter, class PropertyManagerPrivate, class PropertyManager, class Value>
static void setBorderValues (PropertyManager *manager, PropertyManagerPrivate *managerPrivate, void(PropertyManager::*propertyChangedSignal)(QtProperty *), void(PropertyManager::*valueChangedSignal)(QtProperty *, ValueChangeParameter), void(PropertyManager::*rangeChangedSignal)(QtProperty *, ValueChangeParameter, ValueChangeParameter), QtProperty *property, ValueChangeParameter minVal, ValueChangeParameter maxVal, void(PropertyManagerPrivate::*setSubPropertyRange)(QtProperty *, ValueChangeParameter, ValueChangeParameter, ValueChangeParameter))
template<class ValueChangeParameter, class PropertyManagerPrivate, class PropertyManager, class Value, class PrivateData>
static void setBorderValue (PropertyManager *manager, PropertyManagerPrivate *managerPrivate, void(PropertyManager::*propertyChangedSignal)(QtProperty *), void(PropertyManager::*valueChangedSignal)(QtProperty *, ValueChangeParameter), void(PropertyManager::*rangeChangedSignal)(QtProperty *, ValueChangeParameter, ValueChangeParameter), QtProperty *property, Value(PrivateData::*getRangeVal)() const, void(PrivateData::*setRangeVal)(ValueChangeParameter), const Value &borderVal, void(PropertyManagerPrivate::*setSubPropertyRange)(QtProperty *, ValueChangeParameter, ValueChangeParameter, ValueChangeParameter))
template<class ValueChangeParameter, class PropertyManagerPrivate, class PropertyManager, class Value, class PrivateData>
static void setMinimumValue (PropertyManager *manager, PropertyManagerPrivate *managerPrivate, void(PropertyManager::*propertyChangedSignal)(QtProperty *), void(PropertyManager::*valueChangedSignal)(QtProperty *, ValueChangeParameter), void(PropertyManager::*rangeChangedSignal)(QtProperty *, ValueChangeParameter, ValueChangeParameter), QtProperty *property, const Value &minVal)
template<class ValueChangeParameter, class PropertyManagerPrivate, class PropertyManager, class Value, class PrivateData>
static void setMaximumValue (PropertyManager *manager, PropertyManagerPrivate *managerPrivate, void(PropertyManager::*propertyChangedSignal)(QtProperty *), void(PropertyManager::*valueChangedSignal)(QtProperty *, ValueChangeParameter), void(PropertyManager::*rangeChangedSignal)(QtProperty *, ValueChangeParameter, ValueChangeParameter), QtProperty *property, const Value &maxVal)
static QList< QLocale::TerritorysortedTerritories (const QList< QLocale > &locales)
static QIcon drawCheckBox (bool value)
static QStringList fontWeightNames ()

Variables

static const QFont::Weight weightValues []

Typedef Documentation

◆ DisambiguatedTranslation

typedef std::pair< const char *, const char * > DisambiguatedTranslation = std::pair<const char *, const char *>

Definition at line 35 of file qtpropertymanager.cpp.

Function Documentation

◆ drawCheckBox()

QIcon drawCheckBox ( bool value)
static

Definition at line 1363 of file qtpropertymanager.cpp.

◆ fontWeightNames()

QStringList fontWeightNames ( )
static

Definition at line 5825 of file qtpropertymanager.cpp.

◆ getData()

template<class Value, class PrivateData>
Value getData ( const QHash< const QtProperty *, PrivateData > & propertyMap,
Value PrivateData::* data,
const QtProperty * property,
const Value & defaultValue = Value() )
static

Definition at line 175 of file qtpropertymanager.cpp.

◆ getMaximum()

template<class Value, class PrivateData>
Value getMaximum ( const QHash< const QtProperty *, PrivateData > & propertyMap,
const QtProperty * property,
const Value & defaultValue = Value() )
static

Definition at line 200 of file qtpropertymanager.cpp.

◆ getMinimum()

template<class Value, class PrivateData>
Value getMinimum ( const QHash< const QtProperty *, PrivateData > & propertyMap,
const QtProperty * property,
const Value & defaultValue = Value() )
static

Definition at line 193 of file qtpropertymanager.cpp.

◆ getValue()

template<class Value, class PrivateData>
Value getValue ( const QHash< const QtProperty *, PrivateData > & propertyMap,
const QtProperty * property,
const Value & defaultValue = Value() )
static

Definition at line 186 of file qtpropertymanager.cpp.

◆ indexOfFontWeight()

int indexOfFontWeight ( QFont::Weight w)
static

Definition at line 42 of file qtpropertymanager.cpp.

◆ qBound() [1/2]

QSize qBound ( QSize minVal,
QSize val,
QSize maxVal )

Definition at line 123 of file qtpropertymanager.cpp.

◆ qBound() [2/2]

QSizeF qBound ( QSizeF minVal,
QSizeF val,
QSizeF maxVal )

Definition at line 128 of file qtpropertymanager.cpp.

◆ qBoundSize()

template<class SizeValue>
SizeValue qBoundSize ( const SizeValue & minVal,
const SizeValue & val,
const SizeValue & maxVal )
static

Definition at line 106 of file qtpropertymanager.cpp.

◆ setBorderValue()

template<class ValueChangeParameter, class PropertyManagerPrivate, class PropertyManager, class Value, class PrivateData>
void setBorderValue ( PropertyManager * manager,
PropertyManagerPrivate * managerPrivate,
void(PropertyManager::* propertyChangedSignal )(QtProperty *),
void(PropertyManager::* valueChangedSignal )(QtProperty *, ValueChangeParameter),
void(PropertyManager::* rangeChangedSignal )(QtProperty *, ValueChangeParameter, ValueChangeParameter),
QtProperty * property,
Value(PrivateData::* getRangeVal )() const,
void(PrivateData::* setRangeVal )(ValueChangeParameter),
const Value & borderVal,
void(PropertyManagerPrivate::* setSubPropertyRange )(QtProperty *, ValueChangeParameter, ValueChangeParameter, ValueChangeParameter) )
static

Definition at line 296 of file qtpropertymanager.cpp.

◆ setBorderValues()

template<class ValueChangeParameter, class PropertyManagerPrivate, class PropertyManager, class Value>
void setBorderValues ( PropertyManager * manager,
PropertyManagerPrivate * managerPrivate,
void(PropertyManager::* propertyChangedSignal )(QtProperty *),
void(PropertyManager::* valueChangedSignal )(QtProperty *, ValueChangeParameter),
void(PropertyManager::* rangeChangedSignal )(QtProperty *, ValueChangeParameter, ValueChangeParameter),
QtProperty * property,
ValueChangeParameter minVal,
ValueChangeParameter maxVal,
void(PropertyManagerPrivate::* setSubPropertyRange )(QtProperty *, ValueChangeParameter, ValueChangeParameter, ValueChangeParameter) )
static

Definition at line 257 of file qtpropertymanager.cpp.

◆ setMaximumValue()

template<class ValueChangeParameter, class PropertyManagerPrivate, class PropertyManager, class Value, class PrivateData>
void setMaximumValue ( PropertyManager * manager,
PropertyManagerPrivate * managerPrivate,
void(PropertyManager::* propertyChangedSignal )(QtProperty *),
void(PropertyManager::* valueChangedSignal )(QtProperty *, ValueChangeParameter),
void(PropertyManager::* rangeChangedSignal )(QtProperty *, ValueChangeParameter, ValueChangeParameter),
QtProperty * property,
const Value & maxVal )
static

Definition at line 346 of file qtpropertymanager.cpp.

◆ setMinimumValue()

template<class ValueChangeParameter, class PropertyManagerPrivate, class PropertyManager, class Value, class PrivateData>
void setMinimumValue ( PropertyManager * manager,
PropertyManagerPrivate * managerPrivate,
void(PropertyManager::* propertyChangedSignal )(QtProperty *),
void(PropertyManager::* valueChangedSignal )(QtProperty *, ValueChangeParameter),
void(PropertyManager::* rangeChangedSignal )(QtProperty *, ValueChangeParameter, ValueChangeParameter),
QtProperty * property,
const Value & minVal )
static

Definition at line 332 of file qtpropertymanager.cpp.

◆ setSimpleMaximumData()

template<class PrivateData, class Value>
void setSimpleMaximumData ( PrivateData * data,
const Value & maxVal )
static

Definition at line 65 of file qtpropertymanager.cpp.

◆ setSimpleMinimumData()

template<class PrivateData, class Value>
void setSimpleMinimumData ( PrivateData * data,
const Value & minVal )
static

Definition at line 54 of file qtpropertymanager.cpp.

◆ setSimpleValue()

template<class ValueChangeParameter, class Value, class PropertyManager>
void setSimpleValue ( QHash< const QtProperty *, Value > & propertyMap,
PropertyManager * manager,
void(PropertyManager::* propertyChangedSignal )(QtProperty *),
void(PropertyManager::* valueChangedSignal )(QtProperty *, ValueChangeParameter),
QtProperty * property,
const Value & val )
static

Definition at line 207 of file qtpropertymanager.cpp.

◆ setSizeMaximumData()

template<class PrivateData, class Value>
void setSizeMaximumData ( PrivateData * data,
const Value & newMaxVal )
static

Definition at line 91 of file qtpropertymanager.cpp.

◆ setSizeMinimumData()

template<class PrivateData, class Value>
void setSizeMinimumData ( PrivateData * data,
const Value & newMinVal )
static

Definition at line 76 of file qtpropertymanager.cpp.

◆ setValueInRange()

template<class ValueChangeParameter, class PropertyManagerPrivate, class PropertyManager, class Value>
void setValueInRange ( PropertyManager * manager,
PropertyManagerPrivate * managerPrivate,
void(PropertyManager::* propertyChangedSignal )(QtProperty *),
void(PropertyManager::* valueChangedSignal )(QtProperty *, ValueChangeParameter),
QtProperty * property,
const Value & val,
void(PropertyManagerPrivate::* setSubPropertyValue )(QtProperty *, ValueChangeParameter) )
static

Definition at line 227 of file qtpropertymanager.cpp.

◆ sortedTerritories()

QList< QLocale::Territory > sortedTerritories ( const QList< QLocale > & locales)
static

Definition at line 397 of file qtpropertymanager.cpp.

◆ weightFromIndex()

QFont::Weight weightFromIndex ( int i)
inlinestatic

Definition at line 48 of file qtpropertymanager.cpp.

Variable Documentation

◆ weightValues

const QFont::Weight weightValues
static
Initial value:

Definition at line 37 of file qtpropertymanager.cpp.