uncrustified
This commit is contained in:
parent
1900adbabb
commit
7ca1e2f261
|
@ -80,8 +80,10 @@ inline constexpr QskHctColor QskHctColor::toned( qreal tone ) const noexcept
|
|||
}
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
|
||||
class QDebug;
|
||||
QSK_EXPORT QDebug operator<<( QDebug, const QskHctColor& );
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -422,7 +422,7 @@ void QskControlPrivate::setPlacementPolicy(
|
|||
else
|
||||
{
|
||||
this->visiblePlacementPolicy =
|
||||
( policy == QskPlacementPolicy::Reserve ) ? 1 : 0;
|
||||
( policy == QskPlacementPolicy::Reserve ) ? 1 : 0;
|
||||
|
||||
if ( isTransparentForPositioner() )
|
||||
{
|
||||
|
|
|
@ -236,12 +236,15 @@ QRectF QskSliderSkinlet::handleRect(
|
|||
QRectF QskSliderSkinlet::rippleRect(
|
||||
const QskSlider* slider, const QRectF& rect ) const
|
||||
{
|
||||
const auto rippleSize = slider->strutSizeHint( QskSlider::Ripple );
|
||||
const auto handleSize = slider->strutSizeHint( QskSlider::Handle );
|
||||
|
||||
const auto w = ( rippleSize.width() - handleSize.width() ) / 2;
|
||||
const auto h = ( rippleSize.height() - handleSize.height() ) / 2;
|
||||
|
||||
auto r = handleRect( slider, rect );
|
||||
auto rippleSize = slider->strutSizeHint( QskSlider::Ripple );
|
||||
auto handleSize = slider->strutSizeHint( QskSlider::Handle );
|
||||
auto w = ( rippleSize.width() - handleSize.width() ) / 2,
|
||||
h = ( rippleSize.height() - handleSize.height() ) / 2;
|
||||
r = r.marginsAdded( { w, h, w, h } );
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ namespace
|
|||
|
||||
public:
|
||||
RotationTransform( Qt::Axis axis, qreal dx1, qreal dy1, qreal dx2,
|
||||
qreal dy2, qreal radians, QQuickItem* item )
|
||||
qreal dy2, qreal radians, QQuickItem* item )
|
||||
: QQuickTransform( item )
|
||||
, m_axis( axis )
|
||||
, m_dx1( dx1 )
|
||||
|
|
|
@ -336,7 +336,7 @@ void QskSubcontrolLayoutEngine::setGraphicTextElements( const QskSkinnable* skin
|
|||
GraphicElement* graphicElement = nullptr;
|
||||
if ( !graphicSize.isEmpty() && ( graphicSubControl != QskAspect::Control ) )
|
||||
{
|
||||
graphicElement = dynamic_cast< GraphicElement * >( element( graphicSubControl ) );
|
||||
graphicElement = dynamic_cast< GraphicElement* >( element( graphicSubControl ) );
|
||||
if ( graphicElement == nullptr )
|
||||
{
|
||||
graphicElement = new GraphicElement( skinnable, graphicSubControl );
|
||||
|
|
Loading…
Reference in New Issue