documentation improved

This commit is contained in:
Uwe Rathmann 2021-04-23 17:31:28 +02:00
parent 2c8c6c8651
commit 539eed08b5
3 changed files with 105 additions and 101 deletions

View File

@ -263,6 +263,7 @@ ALIASES = "accessors=\par Access functions:^^" \
"subcontrols=\par Subcontrols:^^" \ "subcontrols=\par Subcontrols:^^" \
"states=\par States:^^" \ "states=\par States:^^" \
"skinlet=\par Default Skinlet:^^" \ "skinlet=\par Default Skinlet:^^" \
"aspect=\par Aspect^^" \
"saqt=\sa ^^" "saqt=\sa ^^"
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources

View File

@ -455,7 +455,7 @@
\fn QskAspect::setPrimitive \fn QskAspect::setPrimitive
Sets the primitive bits Sets the primitive bits
\sa primitive(), clearPrimitive() \sa primitive(), clearPrimitive()
*/ */
/*! /*!
@ -468,8 +468,8 @@
/*! /*!
\fn QskAspect::clearPrimitive() \fn QskAspect::clearPrimitive()
Clears all primitive bits Clears all primitive bits
\sa setPrimitive(), primitive() \sa setPrimitive(), primitive()
*/ */
/*! /*!

View File

@ -4,21 +4,55 @@
\brief Base class of all controls \brief Base class of all controls
\states Disabled, Hovered, Focused \states QskControl::Disabled, QskControl::Hovered, QskControl::Focused
*/
/*!
\var QskControl::Disabled
A state bit that is set, when QQuickItem::isEnabled() == false.
\extends QskAspect::State
\sa QskQuickItem::setDisabled()
\saqt QQuickItem::enabled
\var QskControl::Hovered
A state bit that is set, when the item is hovered
It allows to define a specific representation in the skin,
when being hovered.
\saqt QQuickItem::acceptHoverEvents(), QQuickItem::hoverEnterEvent(),
QQuickItem::hoverLeaveEvent()
\var QskControl::Focused
A state bit that is set, when the item is the active focus item
\sa focusPolicy
\saqt QQuickItem::acceptHoverEvents(), QQuickItem::focusInEvent()
QQuickItem::focusOutEvent()
*/ */
/*! /*!
\enum QskControl::LayoutHint \enum QskControl::LayoutHint
Hints, that can be used by the layout code
\sa setLayoutHint(), testLayoutHint(), setLayoutHints(), layoutHints() \sa setLayoutHint(), testLayoutHint(), setLayoutHints(), layoutHints()
setAutoLayoutChildren(), QskLinearBox, QskGridBox, QskStackBox
\var QskControl::RetainSizeWhenHidden \var QskControl::RetainSizeWhenHidden
bla When being enabled the layout code should retain the necessary space
for the control even when it is hidden.
\var QskControl::LayoutOutWhenHidden \saqt QSizePolicy::retainSizeWhenHidden()
bla \var QskControl::LayoutWhenHidden
When being enabled the layout code should set the geometry
to the control - even if it is not visible.
*/ */
/*! /*!
@ -30,8 +64,14 @@
/*! /*!
\property bool QskControl::autoFillBackground \property bool QskControl::autoFillBackground
This property holds whether the background is filled automatically
with the background gradient.
\accessors autoFillBackground(), setAutoFillBackground() \accessors autoFillBackground(), setAutoFillBackground()
\sa setBackgroundColor()
\sa background()
\saqt QWidget::autoFillBackground
*/ */
/*! /*!
@ -115,557 +155,520 @@
/*! /*!
\fn QskControl::QskControl \fn QskControl::QskControl
bla
*/ */
/*! /*!
\fn QskControl::~QskControl \fn QskControl::~QskControl
bla
*/ */
/*! /*!
\fn QskControl::setMargins( qreal ) \fn QskControl::setMargins( qreal )
bla Sets the margins around the contents of the control
The value is stored in the local hint table for the aspect:
QskControl::Control | QskAspect::Metric | QskAspect::Margin
\param margin Margin for all sides
\aspect QskControl::Control | QskAspect::Metric | QskAspect::Margin
\sa contentsRect(), margins(), QskSkinnable::setMarginHint()
*/ */
/*! /*!
\fn QskControl::setMargins( const QMarginsF& ) \fn QskControl::setMargins( const QMarginsF& )
bla Sets the margins around the contents of the control
\param margins Margins
\aspect QskControl::Control | QskAspect::Metric | QskAspect::Margin
\sa contentsRect(), margins()
\saqt QEvent::ContentsRectChange
*/ */
/*! /*!
\fn QskControl::resetMargins \fn QskControl::resetMargins
bla Reset the margins to the default value provided from the skin
\aspect QskControl::Control | QskAspect::Metric | QskAspect::Margin
\sa contentsRect(), setMargins(), margins()
\saqt QEvent::ContentsRectChange
*/ */
/*! /*!
\fn QskControl::margins() const \fn QskControl::margins() const
bla \return margins around the contents of the control
\aspect QskControl::Control | QskAspect::Metric | QskAspect::Margin
\sa contentsRect(), setMargins()
\saqt QEvent::ContentsRectChange
*/ */
/*! /*!
\fn QskControl::setBackgroundColor \fn QskControl::setBackgroundColor
bla A conveninece method that enables the autoFillBackground property
and sets a solid color as background. Usually used for debugging
layout problems.
\sa setBackground(), setAutoFillBackground()
\sa QskQuickItem::DebugForceBackground
*/ */
/*! /*!
\fn QskControl::setBackground \fn QskControl::setBackground
bla Set the gradient that is used to fill the background,
when autoFillBackground is enabled.
\aspect QskControl::Control | QskAspect::Color
\sa resetBackground(), background(), autoFillBackground()
*/ */
/*! /*!
\fn QskControl::resetBackground \fn QskControl::resetBackground
bla Reset the background gradient to the default colors from the skin
\aspect QskControl::Control | QskAspect::Color
\sa setBackground(), background(), autoFillBackground()
*/ */
/*! /*!
\fn QskControl::background() const \fn QskControl::background() const
bla \return Gradient that is used to fill the background,
when autoFillBackground is enabled.
\aspect QskControl::Control | QskAspect::Color
\sa setBackground(), resetBackground(), autoFillBackground()
*/ */
/*! /*!
\fn QskControl::contentsRect \fn QskControl::contentsRect
bla \sa margins(), setMargins(),
*/ */
/*! /*!
\fn QskControl::layoutRect \fn QskControl::layoutRect
bla
*/ */
/*! /*!
\fn QskControl::layoutRectForSize \fn QskControl::layoutRectForSize
bla
*/ */
/*! /*!
\fn QskControl::gestureRect \fn QskControl::gestureRect
bla
*/ */
/*! /*!
\fn QskControl::focusIndicatorRect \fn QskControl::focusIndicatorRect
bla
*/ */
/*! /*!
\fn QskControl::focusIndicatorClipRect \fn QskControl::focusIndicatorClipRect
bla
*/ */
/*! /*!
\fn QskControl::subControlRect( QskAspect::Subcontrol ) const \fn QskControl::subControlRect( QskAspect::Subcontrol ) const
bla
*/ */
/*! /*!
\fn QskControl::subControlRect( const QSizeF&, QskAspect::Subcontrol ) const \fn QskControl::subControlRect( const QSizeF&, QskAspect::Subcontrol ) const
bla
*/ */
/*! /*!
\fn QskControl::subControlContentsRect( QskAspect::Subcontrol ) const \fn QskControl::subControlContentsRect( QskAspect::Subcontrol ) const
bla
*/ */
/*! /*!
\fn QskControl::subControlContentsRect( const QSizeF&, QskAspect::Subcontrol ) const \fn QskControl::subControlContentsRect( const QSizeF&, QskAspect::Subcontrol ) const
bla
*/ */
/*! /*!
\fn QskControl::setAutoFillBackground \fn QskControl::setAutoFillBackground
bla Set or clear the autoFillBackground property
\sa autoFillBackground()
*/ */
/*! /*!
\fn QskControl::autoFillBackground() const \fn QskControl::autoFillBackground() const
bla \return Value of the autoFillBackground property
\sa setAutoFillBackground()
*/ */
/*! /*!
\fn QskControl::setAutoLayoutChildren \fn QskControl::setAutoLayoutChildren
bla Set or clear the autoLayoutChildren property
\sa autoFillBackground()
*/ */
/*! /*!
\fn QskControl::autoLayoutChildren() const \fn QskControl::autoLayoutChildren() const
bla \return Value of the autoLayoutChildren property
\sa autoLayoutChildren()
*/ */
/*! /*!
\fn QskControl::setWheelEnabled \fn QskControl::setWheelEnabled
bla
*/ */
/*! /*!
\fn QskControl::isWheelEnabled \fn QskControl::isWheelEnabled
bla
*/ */
/*! /*!
\fn QskControl::setFocusPolicy \fn QskControl::setFocusPolicy
bla
*/ */
/*! /*!
\fn QskControl::focusPolicy() const \fn QskControl::focusPolicy() const
bla
*/ */
/*! /*!
\fn QskControl::setSizePolicy( QskSizePolicy ); \fn QskControl::setSizePolicy( QskSizePolicy );
bla
*/ */
/*! /*!
\fn QskControl::setSizePolicy( QskSizePolicy::Policy, QskSizePolicy::Policy ) \fn QskControl::setSizePolicy( QskSizePolicy::Policy, QskSizePolicy::Policy )
bla
*/ */
/*! /*!
\fn QskControl::setSizePolicy( Qt::Orientation, QskSizePolicy::Policy ) \fn QskControl::setSizePolicy( Qt::Orientation, QskSizePolicy::Policy )
bla
*/ */
/*! /*!
\fn QskControl::sizePolicy() const \fn QskControl::sizePolicy() const
bla
*/ */
/*! /*!
\fn QskControl::sizePolicy( Qt::Orientation ) const \fn QskControl::sizePolicy( Qt::Orientation ) const
bla
*/ */
/*! /*!
\fn QskControl::setLayoutAlignmentHint \fn QskControl::setLayoutAlignmentHint
bla
*/ */
/*! /*!
\fn QskControl::layoutAlignmentHint \fn QskControl::layoutAlignmentHint
bla
*/ */
/*! /*!
\fn QskControl::setLayoutHint \fn QskControl::setLayoutHint
bla
*/ */
/*! /*!
\fn QskControl::testLayoutHint \fn QskControl::testLayoutHint
bla
*/ */
/*! /*!
\fn QskControl::setLayoutHints \fn QskControl::setLayoutHints
bla
*/ */
/*! /*!
\fn QskControl::layoutHints \fn QskControl::layoutHints
bla
*/ */
/*! /*!
\fn QskControl::isVisibleToLayout \fn QskControl::isVisibleToLayout
bla
*/ */
/*! /*!
\fn QskControl::setMinimumSize( const QSizeF& ) \fn QskControl::setMinimumSize( const QSizeF& )
bla
*/ */
/*! /*!
\fn QskControl::setMinimumSize( qreal, qreal ) \fn QskControl::setMinimumSize( qreal, qreal )
bla
*/ */
/*! /*!
\fn QskControl::setMinimumWidth \fn QskControl::setMinimumWidth
bla
*/ */
/*! /*!
\fn QskControl::setMinimumHeight \fn QskControl::setMinimumHeight
bla
*/ */
/*! /*!
\fn QskControl::setMaximumSize( const QSizeF& ) \fn QskControl::setMaximumSize( const QSizeF& )
bla
*/ */
/*! /*!
\fn QskControl::setMaximumSize( qreal, qreal ) \fn QskControl::setMaximumSize( qreal, qreal )
bla
*/ */
/*! /*!
\fn QskControl::setMaximumWidth \fn QskControl::setMaximumWidth
bla
*/ */
/*! /*!
\fn QskControl::setMaximumHeight \fn QskControl::setMaximumHeight
bla
*/ */
/*! /*!
\fn QskControl::setPreferredSize( const QSizeF& ) \fn QskControl::setPreferredSize( const QSizeF& )
bla
*/ */
/*! /*!
\fn QskControl::setPreferredSize( qreal, qreal ) \fn QskControl::setPreferredSize( qreal, qreal )
bla
*/ */
/*! /*!
\fn QskControl::setPreferredWidth \fn QskControl::setPreferredWidth
bla
*/ */
/*! /*!
\fn QskControl::setPreferredHeight \fn QskControl::setPreferredHeight
bla
*/ */
/*! /*!
\fn QskControl::setFixedSize( const QSizeF& ); \fn QskControl::setFixedSize( const QSizeF& );
bla
*/ */
/*! /*!
\fn QskControl::setFixedSize( qreal width, qreal height ); \fn QskControl::setFixedSize( qreal width, qreal height );
bla
*/ */
/*! /*!
\fn QskControl::setFixedWidth \fn QskControl::setFixedWidth
bla
*/ */
/*! /*!
\fn QskControl::setFixedHeight \fn QskControl::setFixedHeight
bla
*/ */
/*! /*!
\fn QskControl::setExplicitSizeHint( Qt::SizeHint, const QSizeF& ); \fn QskControl::setExplicitSizeHint( Qt::SizeHint, const QSizeF& );
bla
*/ */
/*! /*!
\fn QskControl::setExplicitSizeHint( Qt::SizeHint, qreal width, qreal height ); \fn QskControl::setExplicitSizeHint( Qt::SizeHint, qreal width, qreal height );
bla
*/ */
/*! /*!
\fn QskControl::resetExplicitSizeHint \fn QskControl::resetExplicitSizeHint
bla
*/ */
/*! /*!
\fn QskControl::minimumSize() const; \fn QskControl::minimumSize() const;
bla
*/ */
/*! /*!
\fn QskControl::maximumSize() const; \fn QskControl::maximumSize() const;
bla
*/ */
/*! /*!
\fn QskControl::preferredSize() const; \fn QskControl::preferredSize() const;
bla
*/ */
/*! /*!
\fn QskControl::explicitSizeHint \fn QskControl::explicitSizeHint
bla
*/ */
/*! /*!
\fn QskControl::implicitSizeHint \fn QskControl::implicitSizeHint
bla
*/ */
/*! /*!
\fn QskControl::sizeHint \fn QskControl::sizeHint
bla
*/ */
/*! /*!
\fn QskControl::heightForWidth \fn QskControl::heightForWidth
bla
*/ */
/*! /*!
\fn QskControl::widthForHeight \fn QskControl::widthForHeight
bla
*/ */
/*! /*!
\fn QskControl::effectiveSizeHint \fn QskControl::effectiveSizeHint
bla
*/ */
/*! /*!
\fn QskControl::sizeConstraint( Qt::SizeHint, const QSizeF& ) const \fn QskControl::sizeConstraint( Qt::SizeHint, const QSizeF& ) const
bla
*/ */
/*! /*!
\fn QskControl::sizeConstraint() const \fn QskControl::sizeConstraint() const
bla
*/ */
/*! /*!
\fn QskControl::locale() const \fn QskControl::locale() const
bla
*/ */
/*! /*!
\fn QskControl::resetLocale \fn QskControl::resetLocale
bla
*/ */
/*! /*!
\fn QskControl::subControls \fn QskControl::subControls
bla
*/ */
/*! /*!
\fn void QskControl::backgroundChanged \fn void QskControl::backgroundChanged
bla
*/ */
/*! /*!
\fn void QskControl::marginsChanged \fn void QskControl::marginsChanged
bla
*/ */
/*! /*!
\fn void QskControl::focusIndicatorRectChanged \fn void QskControl::focusIndicatorRectChanged
bla
*/ */
/*! /*!
\fn void QskControl::localeChanged \fn void QskControl::localeChanged
bla
*/ */
/*! /*!
\fn void QskControl::focusPolicyChanged \fn void QskControl::focusPolicyChanged
bla
*/ */
/*! /*!
\fn void QskControl::wheelEnabledChanged \fn void QskControl::wheelEnabledChanged
bla
*/ */
/*! /*!
\fn void QskControl::setLocale \fn void QskControl::setLocale
bla
*/ */
/*! /*!
\fn bool QskControl::event \fn bool QskControl::event
bla
*/ */
/*! /*!
\fn virtual void QskControl::gestureEvent \fn virtual void QskControl::gestureEvent
bla
*/ */
/*! /*!
\fn void QskControl::hoverEnterEvent \fn void QskControl::hoverEnterEvent
bla
*/ */
/*! /*!
\fn void QskControl::hoverLeaveEvent \fn void QskControl::hoverLeaveEvent
bla
*/ */
/*! /*!
\fn bool QskControl::childMouseEventFilter \fn bool QskControl::childMouseEventFilter
bla
*/ */
/*! /*!
\fn virtual bool QskControl::gestureFilter \fn virtual bool QskControl::gestureFilter
bla
*/ */
/*! /*!
\fn void QskControl::itemChange \fn void QskControl::itemChange
bla
*/ */
/*! /*!
\fn void QskControl::geometryChange \fn void QskControl::geometryChange
bla
*/ */
/*! /*!
\fn void QskControl::initSizePolicy \fn void QskControl::initSizePolicy
bla
*/ */
/*! /*!
\fn virtual void QskControl::updateResources \fn virtual void QskControl::updateResources
bla
*/ */
/*! /*!
\fn virtual void QskControl::updateLayout \fn virtual void QskControl::updateLayout
bla
*/ */
/*! /*!
\fn virtual QSizeF QskControl::contentsSizeHint \fn virtual QSizeF QskControl::contentsSizeHint
bla
*/ */
/*! /*!
\fn virtual QSizeF QskControl::layoutSizeHint \fn virtual QSizeF QskControl::layoutSizeHint
bla
*/ */