qskinny/examples/iot-dashboard/Box.h

28 lines
506 B
C
Raw Normal View History

2020-05-22 09:48:05 +00:00
#ifndef CARD_H
#define CARD_H
#include "src/shadowedrectangle.h"
2020-05-22 09:48:05 +00:00
#include <QskLinearBox.h>
class QskTextLabel;
2020-09-17 14:14:29 +00:00
class Box : public QskLinearBox
2020-05-22 09:48:05 +00:00
{
2020-09-23 15:45:06 +00:00
Q_OBJECT
2020-09-16 16:38:17 +00:00
public:
2020-09-23 15:45:06 +00:00
QSK_SUBCONTROLS( Panel )
2020-09-17 14:14:29 +00:00
Box( const QString& title, QQuickItem* parent );
2020-05-22 09:48:05 +00:00
2020-09-23 15:45:06 +00:00
QskAspect::Subcontrol effectiveSubcontrol(
2021-03-31 14:46:15 +00:00
QskAspect::Subcontrol subControl ) const override;
2020-09-23 15:45:06 +00:00
2020-09-16 16:38:17 +00:00
private:
QString m_title;
QskTextLabel* m_label;
QskControl* m_content;
2020-05-22 09:48:05 +00:00
};
#endif // CARD_H