fix paddings, something in the API changed
This commit is contained in:
parent
dc41583279
commit
0da176f6f1
|
@ -45,7 +45,7 @@ Box::Box( const QString& title, QQuickItem* parent )
|
||||||
setAutoLayoutChildren( true );
|
setAutoLayoutChildren( true );
|
||||||
setBackgroundColor( Qt::white );
|
setBackgroundColor( Qt::white );
|
||||||
|
|
||||||
setMarginHint( Panel | QskAspect::Padding, 15 );
|
setPaddingHint( Panel, 15 );
|
||||||
setPanel( true );
|
setPanel( true );
|
||||||
setBoxShapeHint( QskBox::Panel, 6 );
|
setBoxShapeHint( QskBox::Panel, 6 );
|
||||||
// setBoxBorderMetricsHint( QskBox::Panel, 2 );
|
// setBoxBorderMetricsHint( QskBox::Panel, 2 );
|
||||||
|
|
|
@ -132,7 +132,7 @@ Diagram::Diagram( QQuickItem* parent )
|
||||||
, m_weekdays( new QskGridBox( this ) )
|
, m_weekdays( new QskGridBox( this ) )
|
||||||
, m_content( new DiagramContent( this ) )
|
, m_content( new DiagramContent( this ) )
|
||||||
{
|
{
|
||||||
setMarginHint( Panel | QskAspect::Padding, 0 );
|
setPaddingHint( Panel, 0 );
|
||||||
|
|
||||||
setAutoAddChildren( false );
|
setAutoAddChildren( false );
|
||||||
setAutoLayoutChildren( true );
|
setAutoLayoutChildren( true );
|
||||||
|
|
|
@ -15,7 +15,7 @@ Humidity::Humidity( QQuickItem* parent )
|
||||||
: Box( "", parent )
|
: Box( "", parent )
|
||||||
{
|
{
|
||||||
setPanel( true );
|
setPanel( true );
|
||||||
setMarginHint( Panel | QskAspect::Padding, 8 );
|
setPaddingHint( Panel, 8 );
|
||||||
setSizePolicy( Qt::Vertical, QskSizePolicy::Maximum );
|
setSizePolicy( Qt::Vertical, QskSizePolicy::Maximum );
|
||||||
|
|
||||||
auto* layout = new QskLinearBox( Qt::Horizontal, this );
|
auto* layout = new QskLinearBox( Qt::Horizontal, this );
|
||||||
|
|
|
@ -15,7 +15,7 @@ IndoorTemperature::IndoorTemperature( QQuickItem* parent )
|
||||||
: Box( "", parent )
|
: Box( "", parent )
|
||||||
{
|
{
|
||||||
setPanel( true );
|
setPanel( true );
|
||||||
setMarginHint( Panel | QskAspect::Padding, 8 );
|
setPaddingHint( Panel, 8 );
|
||||||
setSizePolicy( Qt::Vertical, QskSizePolicy::Maximum );
|
setSizePolicy( Qt::Vertical, QskSizePolicy::Maximum );
|
||||||
|
|
||||||
auto* layout = new QskLinearBox( Qt::Horizontal, this );
|
auto* layout = new QskLinearBox( Qt::Horizontal, this );
|
||||||
|
|
Loading…
Reference in New Issue