26 lines
447 B
C
26 lines
447 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;
|
||
|
};
|
||
|
|
||
|
#endif // ROUNDEDICON_H
|