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

(4d510b3a5cd248b9b2450858d94b2f026f22bcff)

#include "qtpropertymanager_p.h"
#include "qtpropertybrowserutils_p.h"
#include <QtWidgets/qapplication.h>
#include <QtWidgets/qlabel.h>
#include <QtWidgets/qstyle.h>
#include <QtWidgets/qstyleoption.h>
#include <QtGui/qfontdatabase.h>
#include <QtGui/qicon.h>
#include <QtGui/qpainter.h>
#include <QtCore/qdatetime.h>
#include <QtCore/qhash.h>
#include <QtCore/qlocale.h>
#include <QtCore/qmap.h>
#include <QtCore/qmetaobject.h>
#include <QtCore/qregularexpression.h>
#include <QtCore/qtimer.h>
#include <limits>
#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  QCheckBoxIconEngine
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 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 31 of file qtpropertymanager.cpp.

Function Documentation

◆ fontWeightNames()

QStringList fontWeightNames ( )
static

Definition at line 5836 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 171 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 196 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 189 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 182 of file qtpropertymanager.cpp.

◆ indexOfFontWeight()

int indexOfFontWeight ( QFont::Weight w)
static

Definition at line 38 of file qtpropertymanager.cpp.

◆ qBound() [1/2]

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

Definition at line 119 of file qtpropertymanager.cpp.

◆ qBound() [2/2]

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

Definition at line 124 of file qtpropertymanager.cpp.

◆ qBoundSize()

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

Definition at line 102 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 292 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 253 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 342 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 328 of file qtpropertymanager.cpp.

◆ setSimpleMaximumData()

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

Definition at line 61 of file qtpropertymanager.cpp.

◆ setSimpleMinimumData()

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

Definition at line 50 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 203 of file qtpropertymanager.cpp.

◆ setSizeMaximumData()

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

Definition at line 87 of file qtpropertymanager.cpp.

◆ setSizeMinimumData()

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

Definition at line 72 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 223 of file qtpropertymanager.cpp.

◆ sortedTerritories()

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

Definition at line 393 of file qtpropertymanager.cpp.

◆ weightFromIndex()

QFont::Weight weightFromIndex ( int i)
inlinestatic

Definition at line 44 of file qtpropertymanager.cpp.

Variable Documentation

◆ weightValues

const QFont::Weight weightValues
static
Initial value:

Definition at line 33 of file qtpropertymanager.cpp.