qskinny/examples/iot-dashboard/RoundedIcon.h

27 lines
540 B
C
Raw Normal View History

2020-08-14 10:48:15 +00:00
#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;
virtual QSizeF contentsSizeHint( Qt::SizeHint, const QSizeF& ) const override;
2020-08-14 10:48:15 +00:00
private:
QString m_iconName;
QskGradient m_gradient;
2020-08-26 12:45:57 +00:00
QskGraphicLabel* m_graphicLabel = nullptr;
2020-08-14 10:48:15 +00:00
};
#endif // ROUNDEDICON_H