qskinny/examples/iot-dashboard/Card.cpp

13 lines
363 B
C++
Raw Normal View History

2020-05-22 09:48:05 +00:00
#include "Card.h"
#include <QskTextLabel.h>
Card::Card(const QString &title, QskControl *content, QQuickItem *parent ) : QskLinearBox( Qt::Vertical, parent ),
m_title( title )
{
m_label = new QskTextLabel( m_title, this );
m_content = content;
2020-05-22 13:15:38 +00:00
m_content->setParentItem( this ); // ### maybe do it differently
2020-05-22 09:48:05 +00:00
m_content->setParent( this );
}