6#include "QskDrawerSkinlet.h"
9QskDrawerSkinlet::QskDrawerSkinlet(
QskSkin* skin )
12 appendNodeRoles( { PanelRole } );
15QskDrawerSkinlet::~QskDrawerSkinlet() =
default;
17QRectF QskDrawerSkinlet::subControlRect(
18 const QskSkinnable* skinnable,
const QRectF& contentsRect,
21 if ( subControl == QskDrawer::Panel )
24 return Inherited::subControlRect( skinnable, contentsRect, subControl );
27QSGNode* QskDrawerSkinlet::updateSubNode(
28 const QskSkinnable* skinnable, quint8 nodeRole, QSGNode* node )
const
30 if ( nodeRole == PanelRole )
31 return updateBoxNode( skinnable, node, QskDrawer::Panel );
33 return Inherited::updateSubNode( skinnable, nodeRole, node );
36QSizeF QskDrawerSkinlet::sizeHint(
const QskSkinnable* skinnable,
37 Qt::SizeHint which,
const QSizeF& constraint )
const
39 if ( which == Qt::PreferredSize )
42 return Inherited::sizeHint( skinnable, which, constraint );
45#include "moc_QskDrawerSkinlet.cpp"
Subcontrol
For use within the rendering or lay-outing of a specific QskSkinnable.
QSizeF strutSizeHint(QskAspect, QskSkinHintStatus *=nullptr) const
Retrieves a strut size hint.