2020-08-11 17:56:53 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* This file may be used under the terms of the 3-clause BSD License
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#include "Page.h"
|
|
|
|
|
|
|
|
#include <QskRgbValue.h>
|
|
|
|
#include <QskBoxShapeMetrics.h>
|
|
|
|
|
|
|
|
Page::Page( Qt::Orientation orientation, QQuickItem* parent )
|
|
|
|
: QskLinearBox( orientation, parent )
|
|
|
|
{
|
|
|
|
setBackgroundColor( Qt::gray );
|
|
|
|
|
|
|
|
setPanel( true );
|
|
|
|
setBoxShapeHint( QskBox::Panel, 8 );
|
2020-08-15 13:29:17 +02:00
|
|
|
setGradient( QskRgb::GhostWhite );
|
2020-08-11 17:56:53 +02:00
|
|
|
|
|
|
|
setMargins( 5 );
|
|
|
|
setPadding( 10 );
|
|
|
|
setSpacing( 10 );
|
|
|
|
}
|
|
|
|
|
|
|
|
void Page::setGradient( const QskGradient& gradient )
|
|
|
|
{
|
|
|
|
setGradientHint( QskBox::Panel, gradient );
|
|
|
|
}
|