namespace added

This commit is contained in:
Uwe Rathmann 2019-09-23 13:11:25 +02:00
parent 4224613e15
commit 8add7e1b3a

View File

@ -22,34 +22,37 @@
#include <QGuiApplication> #include <QGuiApplication>
class Rectangle : public Box namespace
{ {
public: class Rectangle : public Box
Rectangle( QQuickItem* parentItem )
: Box( parentItem )
{ {
} public:
}; Rectangle( QQuickItem* parentItem )
: Box( parentItem )
{
}
};
class RoundedRectangle : public Box class RoundedRectangle : public Box
{
public:
RoundedRectangle( QQuickItem* parentItem )
: Box( parentItem )
{ {
setShape( 20, Qt::AbsoluteSize ); public:
} RoundedRectangle( QQuickItem* parentItem )
}; : Box( parentItem )
{
setShape( 20, Qt::AbsoluteSize );
}
};
class Ellipse : public Box class Ellipse : public Box
{
public:
Ellipse( QQuickItem* parentItem )
: Box( parentItem )
{ {
setShape( 100, Qt::RelativeSize ); public:
} Ellipse( QQuickItem* parentItem )
}; : Box( parentItem )
{
setShape( 100, Qt::RelativeSize );
}
};
}
static void addTestRectangle( QskLinearBox* parent ) static void addTestRectangle( QskLinearBox* parent )
{ {