6#include "QskProgressBar.h"
8#include "QskIntervalF.h"
13class QskProgressBar::PrivateData
16 Qt::Orientation orientation;
19QskProgressBar::QskProgressBar( Qt::Orientation orientation,
20 qreal min, qreal max, QQuickItem* parent )
21 : Inherited( min, max, parent )
22 , m_data( new PrivateData )
24 m_data->orientation = orientation;
26 if ( orientation == Qt::Horizontal )
27 initSizePolicy( QskSizePolicy::MinimumExpanding, QskSizePolicy::Fixed );
29 initSizePolicy( QskSizePolicy::Fixed, QskSizePolicy::MinimumExpanding );
31 setSubcontrolProxy( Inherited::Groove, Groove );
32 setSubcontrolProxy( Inherited::Fill, Fill );
35QskProgressBar::QskProgressBar( Qt::Orientation orientation, QQuickItem* parent )
40QskProgressBar::QskProgressBar(
const QskIntervalF& boundaries, QQuickItem* parent )
41 :
QskProgressBar( boundaries.lowerBound(), boundaries.upperBound(), parent )
45QskProgressBar::QskProgressBar( qreal min, qreal max, QQuickItem* parent )
50QskProgressBar::QskProgressBar( QQuickItem* parent )
55QskProgressBar::~QskProgressBar()
65Qt::Orientation QskProgressBar::orientation()
const
67 return m_data->orientation;
70void QskProgressBar::setOrientation( Qt::Orientation orientation )
72 if ( orientation != m_data->orientation )
74 m_data->orientation = orientation;
80 Q_EMIT orientationChanged( m_data->orientation );
84#include "moc_QskProgressBar.cpp"
Variation
Some sort of variation.
void setSizePolicy(QskSizePolicy)
QskAspect::Variation effectiveVariation() const override