qskinny/examples/layouts/TestRectangle.h

26 lines
671 B
C
Raw Normal View History

2017-07-21 16:21:34 +00:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
2023-04-06 07:23:37 +00:00
* SPDX-License-Identifier: BSD-3-Clause
2017-07-21 16:21:34 +00:00
*****************************************************************************/
2021-08-04 08:11:12 +00:00
#pragma once
2017-07-21 16:21:34 +00:00
#include <QskTextLabel.h>
class TestRectangle : public QskTextLabel
{
Q_OBJECT
Q_PROPERTY( QString color READ colorName WRITE setColorName )
2018-08-03 06:15:28 +00:00
public:
TestRectangle( QQuickItem* parent = nullptr );
2017-07-21 16:21:34 +00:00
TestRectangle( const char* colorName, QQuickItem* parent = nullptr );
void setColorName( const QString& );
QString colorName() const;
private:
QString m_colorName;
2017-07-21 16:21:34 +00:00
};