1cd9b93a22
- point to main Calamares site in the 'part of' headers instead of to github (this is the "this file is part of Calamares" opening line for most files). - remove boilerplate from all source files, CMake modules and completions, this is the 3-paragraph summary of the GPL-3.0-or-later, which has a meaning entirely covered by the SPDX tag.
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
/* === This file is part of Calamares - <https://calamares.io> ===
|
|
*
|
|
* SPDX-FileCopyrightText: 2020 Adriaan de Groot <groot@kde.org>
|
|
* SPDX-FileCopyrightText: 2020 Anke Boersma <demm@kaosx.us>
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*
|
|
*/
|
|
|
|
#include "NotesQmlViewStep.h"
|
|
|
|
#include <QVariant>
|
|
|
|
NotesQmlViewStep::NotesQmlViewStep( QObject* parent )
|
|
: Calamares::QmlViewStep( parent )
|
|
{
|
|
}
|
|
|
|
NotesQmlViewStep::~NotesQmlViewStep() {}
|
|
|
|
QString
|
|
NotesQmlViewStep::prettyName() const
|
|
{
|
|
return m_notesName ? m_notesName->get() : tr( "Notes" );
|
|
}
|
|
|
|
void
|
|
NotesQmlViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
|
{
|
|
bool qmlLabel_ok = false;
|
|
auto qmlLabel = CalamaresUtils::getSubMap( configurationMap, "qmlLabel", qmlLabel_ok );
|
|
|
|
if ( qmlLabel.contains( "notes" ) )
|
|
{
|
|
m_notesName = new CalamaresUtils::Locale::TranslatedString( qmlLabel, "notes" );
|
|
}
|
|
|
|
Calamares::QmlViewStep::setConfigurationMap( configurationMap ); // call parent implementation last
|
|
}
|
|
|
|
CALAMARES_PLUGIN_FACTORY_DEFINITION( NotesQmlViewStepFactory, registerPlugin< NotesQmlViewStep >(); )
|