qskinny/examples/iot-dashboard/Usage.h

40 lines
709 B
C
Raw Normal View History

2020-08-12 15:11:00 +00:00
#ifndef USAGE_H
#define USAGE_H
2020-09-17 14:14:29 +00:00
#include "Box.h"
2021-04-07 16:07:46 +00:00
2020-08-12 15:11:00 +00:00
#include <QskLinearBox.h>
2021-04-07 16:07:46 +00:00
#include <QskTextLabel.h>
class UsageSpacer : public QskTextLabel
{
Q_OBJECT
public:
QSK_SUBCONTROLS( Text )
UsageSpacer( QQuickItem* parent = nullptr )
: QskTextLabel( "_____", parent )
{
}
QskAspect::Subcontrol effectiveSubcontrol(
QskAspect::Subcontrol subControl ) const override final
{
if( subControl == QskTextLabel::Text )
{
return Text;
}
return subControl;
}
};
2020-08-12 15:11:00 +00:00
2020-09-17 14:14:29 +00:00
class Usage : public Box
2020-08-12 15:11:00 +00:00
{
2020-09-16 16:38:17 +00:00
public:
Usage( QQuickItem* parent );
2020-08-12 15:11:00 +00:00
};
#endif // USAGE_H