qskinny/examples/iot-dashboard/RoundedIcon.h

26 lines
457 B
C++

#ifndef ROUNDEDICON_H
#define ROUNDEDICON_H
#include <QskBox.h>
#include <QskGradient.h>
class QskGraphicLabel;
class RoundedIcon : public QskBox
{
Q_OBJECT
public:
RoundedIcon(const QString& iconName, const QskGradient& gradient, QQuickItem *parent = nullptr);
protected:
void updateLayout() override;
private:
QString m_iconName;
QskGradient m_gradient;
QskGraphicLabel* m_graphicLabel = nullptr;
};
#endif // ROUNDEDICON_H