Peter Hartmann 26f1d1329a
Iot dashboard: Add own shadows (#135)
* remove current shadow implementation

* add our own shadow code
2021-10-31 11:16:03 +01:00

22 lines
604 B
C++

/******************************************************************************
* Copyright (C) 2021 Edelhirsch Software GmbH
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#include "Box.h"
#include "Skin.h"
#include <QskTextLabel.h>
Box::Box( const QString& title, QQuickItem* parent )
: ShadowedBox( Qt::Vertical, parent )
{
if ( !title.isEmpty() )
{
auto label = new QskTextLabel( title, this );
label->setFontRole( Skin::TitleFont );
}
}
#include "moc_Box.cpp"