qskinny/examples/iotdashboard/RoundedIcon.h
2023-04-06 10:15:03 +02:00

28 lines
659 B
C++

/******************************************************************************
* Copyright (C) 2021 Edelhirsch Software GmbH
* SPDX-License-Identifier: BSD-3-Clause
*****************************************************************************/
#pragma once
#include <QskPushButton.h>
class RoundedIcon : public QskPushButton
{
Q_OBJECT
public:
QSK_SUBCONTROLS( Panel, PalePanel, Graphic )
QSK_STATES( Bright ) // to differentiate between orange and purple
enum
{
NormalRole,
CheckedRole,
} GraphicRole;
RoundedIcon( bool isBright, QQuickItem* parent = nullptr );
void setPale( bool );
};