better classname
This commit is contained in:
parent
40bbe2d7d9
commit
d1a338d542
|
@ -16,10 +16,10 @@
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
class Box : public QskStackBox
|
class StackBox : public QskStackBox
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Box( QQuickItem* parent = nullptr )
|
StackBox( QQuickItem* parent = nullptr )
|
||||||
: QskStackBox( parent )
|
: QskStackBox( parent )
|
||||||
{
|
{
|
||||||
setObjectName( "StackBox" );
|
setObjectName( "StackBox" );
|
||||||
|
@ -103,7 +103,7 @@ StackLayoutPage::StackLayoutPage( QQuickItem* parent )
|
||||||
setMargins( 10 );
|
setMargins( 10 );
|
||||||
setBackgroundColor( QskRgbValue::LightSteelBlue );
|
setBackgroundColor( QskRgbValue::LightSteelBlue );
|
||||||
|
|
||||||
auto* box = new Box();
|
auto* box = new StackBox();
|
||||||
|
|
||||||
auto* buttonBox = new ButtonBox();
|
auto* buttonBox = new ButtonBox();
|
||||||
buttonBox->addButton( "<<", [ box ]() { box->incrementScrolling( Qt::Horizontal, +1 ); } );
|
buttonBox->addButton( "<<", [ box ]() { box->incrementScrolling( Qt::Horizontal, +1 ); } );
|
||||||
|
|
Loading…
Reference in New Issue