2020-05-22 09:48:05 +00:00
|
|
|
#ifndef CARD_H
|
|
|
|
#define CARD_H
|
|
|
|
|
2020-09-18 15:56:20 +00:00
|
|
|
#include "src/shadowedrectangle.h"
|
|
|
|
|
2020-05-22 09:48:05 +00:00
|
|
|
#include <QskLinearBox.h>
|
|
|
|
|
|
|
|
class QskTextLabel;
|
|
|
|
|
2020-09-18 15:56:20 +00:00
|
|
|
class ShadowBox : public QskControl
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2020-09-20 10:56:18 +00:00
|
|
|
ShadowBox( QQuickItem* parent = nullptr );
|
2020-09-18 15:56:20 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void updateLayout() override;
|
|
|
|
|
|
|
|
private:
|
2020-09-20 10:56:18 +00:00
|
|
|
// QskControl* m_control;
|
2020-09-18 15:56:20 +00:00
|
|
|
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
|