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
{ {
class Rectangle : public Box
{
public: public:
Rectangle( QQuickItem* parentItem ) Rectangle( QQuickItem* parentItem )
: Box( parentItem ) : Box( parentItem )
{ {
} }
}; };
class RoundedRectangle : public Box class RoundedRectangle : public Box
{ {
public: public:
RoundedRectangle( QQuickItem* parentItem ) RoundedRectangle( QQuickItem* parentItem )
: Box( parentItem ) : Box( parentItem )
{ {
setShape( 20, Qt::AbsoluteSize ); setShape( 20, Qt::AbsoluteSize );
} }
}; };
class Ellipse : public Box class Ellipse : public Box
{ {
public: public:
Ellipse( QQuickItem* parentItem ) Ellipse( QQuickItem* parentItem )
: Box( parentItem ) : Box( parentItem )
{ {
setShape( 100, Qt::RelativeSize ); setShape( 100, Qt::RelativeSize );
} }
}; };
}
static void addTestRectangle( QskLinearBox* parent ) static void addTestRectangle( QskLinearBox* parent )
{ {