52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
/***************************************************************************
|
|
|
|
source::worx raDIYo
|
|
Copyright © 2020-2022 c.holzheuer
|
|
chris@sourceworx.org
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
#include <swbasecontrol.h>
|
|
#include <ui_swbasecontrol.h>
|
|
|
|
|
|
/**
|
|
* Konstruktor.
|
|
* @param parent das Elternwidget
|
|
* @param settings das Settingsobjekt des MainWidget.
|
|
*/
|
|
|
|
SWBaseControl::SWBaseControl( QWidget* parent, QSettings* settings )
|
|
: SWControl( parent, settings )
|
|
|
|
{
|
|
Ui_SWBaseControl::setupUi( this );
|
|
}
|
|
|
|
|
|
/**
|
|
* Gibt den Header-Text zurück.
|
|
*/
|
|
|
|
QString SWBaseControl::headerText()
|
|
{
|
|
return _headerLabel->text();
|
|
}
|
|
|
|
|
|
/**
|
|
* Setzt den Headertext des Controls. Der Headertext zeigt die die Funktion
|
|
* des Controls an: Sender, Songs, Alarm etc.
|
|
*/
|
|
|
|
void SWBaseControl::setHeaderText( const QString& headerText )
|
|
{
|
|
_headerLabel->setText( headerText );
|
|
}
|