qskinny/examples/layouts/TestRectangle.h
2019-07-09 10:16:04 +02:00

29 lines
730 B
C++

/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef TEST_RECTANGLE
#define TEST_RECTANGLE
#include <QskTextLabel.h>
class TestRectangle : public QskTextLabel
{
Q_OBJECT
Q_PROPERTY( QString color READ colorName WRITE setColorName )
public:
TestRectangle( QQuickItem* parent = nullptr );
TestRectangle( const char* colorName, QQuickItem* parent = nullptr );
void setColorName( const QString& );
QString colorName() const;
private:
QString m_colorName;
};
#endif