Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickvaluetypes.cpp File Reference
#include <private/qquickvaluetypes_p.h>
#include <qtquickglobal.h>
#include <private/qqmlvaluetype_p.h>
#include <private/qcolorspace_p.h>
#include <private/qfont_p.h>
#include "moc_qquickvaluetypes_p.cpp"
+ Include dependency graph for qquickvaluetypes.cpp:

Go to the source code of this file.

Functions

template<typename T , int NumParams>
QVariant createValueTypeFromNumberString (const QString &s)
 
template<typename T >
void setFontProperty (QFont &font, void(QFont::*setter)(T value), QString name, const QJSValue &params, bool *ok)
 

Function Documentation

◆ createValueTypeFromNumberString()

template<typename T , int NumParams>
QVariant createValueTypeFromNumberString ( const QString s)

Definition at line 166 of file qquickvaluetypes.cpp.

References QVarLengthArray< T, Prealloc >::append(), next, ok, Q_STATIC_ASSERT_X, and QVLABaseBase::size().

+ Here is the call graph for this function:

◆ setFontProperty()

template<typename T >
void setFontProperty ( QFont font,
void(QFont::*)(T value setter,
QString  name,
const QJSValue params,
bool *  ok 
)

Definition at line 794 of file qquickvaluetypes.cpp.

References font, ok, and QJSValue::property().

Referenced by QQuickFontValueType::create().

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