2017-07-21 18:21:34 +02:00
|
|
|
/******************************************************************************
|
|
|
|
* QSkinny - Copyright (C) 2016 Uwe Rathmann
|
|
|
|
* This file may be used under the terms of the 3-clause BSD License
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2021-08-04 10:11:12 +02:00
|
|
|
#pragma once
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
#include <QskTextLabel.h>
|
|
|
|
|
|
|
|
class TestRectangle : public QskTextLabel
|
|
|
|
{
|
2019-07-09 10:16:04 +02:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
Q_PROPERTY( QString color READ colorName WRITE setColorName )
|
|
|
|
|
2018-08-03 08:15:28 +02:00
|
|
|
public:
|
2019-07-09 10:16:04 +02:00
|
|
|
TestRectangle( QQuickItem* parent = nullptr );
|
2017-07-21 18:21:34 +02:00
|
|
|
TestRectangle( const char* colorName, QQuickItem* parent = nullptr );
|
2019-07-09 10:16:04 +02:00
|
|
|
|
|
|
|
void setColorName( const QString& );
|
|
|
|
QString colorName() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString m_colorName;
|
2017-07-21 18:21:34 +02:00
|
|
|
};
|