![]() |
Qt 6.x
The Qt SDK
|
#include <qquicklabel_p_p.h>
Inheritance diagram for QQuickLabelPrivate:
Collaboration diagram for QQuickLabelPrivate:Classes | |
| struct | ExtraData |
Additional Inherited Members | |
Public Types inherited from QQuickTextPrivate | |
| enum | UpdateType { UpdateNone , UpdatePreprocess , UpdatePaintNode } |
Public Types inherited from QQuickItemPrivate | |
| enum | ChangeType { Geometry = 0x01 , SiblingOrder = 0x02 , Visibility = 0x04 , Opacity = 0x08 , Destroyed = 0x10 , Parent = 0x20 , Children = 0x40 , Rotation = 0x80 , ImplicitWidth = 0x100 , ImplicitHeight = 0x200 , Enabled = 0x400 , Focus = 0x800 , AllChanges = 0xFFFFFFFF } |
| enum | ExtraDataTag { NoTag = 0x1 , LeftMouseButtonAccepted = 0x2 } |
| enum | DirtyType { TransformOrigin = 0x00000001 , Transform = 0x00000002 , BasicTransform = 0x00000004 , Position = 0x00000008 , Size = 0x00000010 , ZValue = 0x00000020 , Content = 0x00000040 , Smooth = 0x00000080 , OpacityValue = 0x00000100 , ChildrenChanged = 0x00000200 , ChildrenStackingChanged = 0x00000400 , ParentChanged = 0x00000800 , Clip = 0x00001000 , Window = 0x00002000 , EffectReference = 0x00008000 , Visible = 0x00010000 , HideReference = 0x00020000 , Antialiasing = 0x00040000 , TransformUpdateMask , ComplexTransformUpdateMask = Transform | Window , ContentUpdateMask = Size | Content | Smooth | Window | Antialiasing , ChildrenUpdateMask = ChildrenChanged | ChildrenStackingChanged | EffectReference | Window } |
Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Static Public Attributes inherited from QQuickTextPrivate | |
| static const QChar | elideChar = QChar(0x2026) |
| static const int | largeTextSizeThreshold = QQUICKTEXT_LARGETEXT_THRESHOLD |
Protected Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate > | |
| void | setCurrentColorGroup () |
Definition at line 30 of file qquicklabel_p_p.h.
| QT_BEGIN_NAMESPACE QQuickLabelPrivate::QQuickLabelPrivate | ( | ) |
Styled text label with inherited font.
\qmltype Label \inherits Text
! \instantiates QQuickLabel \inqmlmodule QtQuick.Controls
Label extends \l Text with styling and \l {Control::font}{font} inheritance. The default colors and font are style specific. Label can also have a visual \l background item.
You can use the properties of \l Text to change the appearance of the text as desired:
\qml Label { text: "Hello world" font.pixelSize: 22 font.italic: true } \endqml
Definition at line 49 of file qquicklabel.cpp.
| QQuickLabelPrivate::~QQuickLabelPrivate | ( | ) |
Definition at line 56 of file qquicklabel.cpp.
| void QQuickLabelPrivate::cancelBackground | ( | ) |
Definition at line 214 of file qquicklabel.cpp.
References backgroundName(), and quickCancelDeferred().
Here is the call graph for this function:
|
overridevirtual |
Implements QQuickAbstractPaletteProvider.
Definition at line 268 of file qquicklabel.cpp.
References QQuickTheme::Label, and QQuickTheme::palette().
Here is the call graph for this function:Definition at line 220 of file qquicklabel.cpp.
References background, backgroundName(), quickBeginDeferred(), quickCompleteDeferred(), and QQuickUntypedDeferredPointer::wasExecuted().
Here is the call graph for this function:
|
inlinestatic |
Definition at line 41 of file qquicklabel_p_p.h.
References QObjectPrivate::get(), and item.
Referenced by QQuickControlPrivate::updateFontRecur().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 50 of file qquicklabel_p_p.h.
Referenced by resizeBackground().
Here is the caller graph for this function:
|
inline |
Definition at line 46 of file qquicklabel_p_p.h.
Referenced by setBottomInset(), setLeftInset(), setRightInset(), and setTopInset().
Here is the caller graph for this function:
|
inline |
Definition at line 48 of file qquicklabel_p_p.h.
Referenced by resizeBackground().
Here is the caller graph for this function:
|
inline |
Definition at line 49 of file qquicklabel_p_p.h.
Referenced by resizeBackground().
Here is the caller graph for this function:
|
inline |
Definition at line 47 of file qquicklabel_p_p.h.
Referenced by resizeBackground().
Here is the caller graph for this function:Definition at line 147 of file qquicklabel.cpp.
References extra, QQuickTextPrivate::font, QQuickTheme::font(), QQuickTheme::Label, QFont::resolve(), QFont::resolveMask(), setFont_helper(), and QFont::setResolveMask().
Referenced by resolveFont(), and QQuickControlPrivate::updateFontRecur().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 258 of file qquicklabel.cpp.
References background, emit, and item.
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 232 of file qquicklabel.cpp.
References background, extra, QQuickItemPrivate::get(), item, Q_UNUSED, resizeBackground(), resizingBackground, and QQuickGeometryChange::sizeChange().
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 251 of file qquicklabel.cpp.
References background, emit, and item.
|
overridevirtual |
Reimplemented from QQuickItemChangeListener.
Definition at line 244 of file qquicklabel.cpp.
References background, emit, and item.
| void QQuickLabelPrivate::resizeBackground | ( | ) |
Definition at line 111 of file qquicklabel.cpp.
References background, extra, QQuickItemPrivate::get(), getBottomInset(), getLeftInset(), getRightInset(), getTopInset(), qFuzzyIsNull(), resizingBackground, QQuickItem::setHeight(), QQuickItem::setWidth(), QQuickItem::setX(), QQuickItem::setY(), QQuickItem::x, and QQuickItem::y.
Referenced by itemGeometryChanged().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQuickLabelPrivate::resolveFont | ( | ) |
Determine which font is implicitly imposed on this control by its ancestors and QGuiApplication::font, resolve this against its own font (attributes from the implicit font are copied over). Then propagate this font to this control's children.
Definition at line 141 of file qquicklabel.cpp.
References inheritFont(), and QQuickControlPrivate::parentFont().
Here is the call graph for this function:Definition at line 99 of file qquicklabel.cpp.
References QMarginsF::bottom(), emit, extra, getInset(), and qFuzzyCompare().
Here is the call graph for this function:Definition at line 62 of file qquicklabel_p_p.h.
References font, and QFont::resolveMask().
Referenced by inheritFont().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 75 of file qquicklabel.cpp.
References emit, extra, getInset(), QMarginsF::left(), and qFuzzyCompare().
Here is the call graph for this function:Definition at line 87 of file qquicklabel.cpp.
References emit, extra, getInset(), qFuzzyCompare(), and QMarginsF::right().
Here is the call graph for this function:Definition at line 63 of file qquicklabel.cpp.
References emit, extra, getInset(), qFuzzyCompare(), and QMarginsF::top().
Here is the call graph for this function:Definition at line 175 of file qquicklabel.cpp.
References Q_UNUSED, and QQuickTextPrivate::text.
Referenced by QQuickLabel::QQuickLabel().
Here is the caller graph for this function:Assign font to this control, and propagate it to all children.
Definition at line 163 of file qquicklabel.cpp.
References emit, QQuickTextPrivate::font, QQuickTextPrivate::sourceFont, and QQuickControlPrivate::updateFontRecur().
Here is the call graph for this function:| QQuickDeferredPointer<QQuickItem> QQuickLabelPrivate::background |
Definition at line 103 of file qquicklabel_p_p.h.
Referenced by executeBackground(), itemDestroyed(), itemGeometryChanged(), itemImplicitHeightChanged(), itemImplicitWidthChanged(), and resizeBackground().
| QLazilyAllocated<ExtraData> QQuickLabelPrivate::extra |
Definition at line 99 of file qquicklabel_p_p.h.
Referenced by inheritFont(), itemGeometryChanged(), resizeBackground(), setBottomInset(), setLeftInset(), setRightInset(), and setTopInset().
| bool QQuickLabelPrivate::resizingBackground = false |
Definition at line 101 of file qquicklabel_p_p.h.
Referenced by itemGeometryChanged(), and resizeBackground().
| QPalette QQuickLabelPrivate::resolvedPalette |
Definition at line 102 of file qquicklabel_p_p.h.