qskinny/examples/iotdashboard/RoundedIcon.h
2023-04-06 09:23:37 +02:00

28 lines
658 B
C++

/******************************************************************************
* Copyright (C) 2021 Edelhirsch Software GmbH
* SPDX-License-Identifier: BSD-3-Claus
*****************************************************************************/
#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 );
};