qskinny/examples/iot-dashboard/Box.h

42 lines
775 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;
class ShadowBox : public QskControl
{
Q_OBJECT
public:
ShadowBox( QQuickItem* parent = nullptr );
protected:
void updateLayout() override;
private:
// QskControl* m_control;
ShadowedRectangle* m_rectangle;
};
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(
QskAspect::Subcontrol subControl ) const override final;
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