calamares/src/modules/plasmalnf/PlasmaLnfPage.cpp

46 lines
1.9 KiB
C++
Raw Normal View History

/* === This file is part of Calamares - <https://calamares.io> ===
*
2020-08-22 01:19:58 +02:00
* SPDX-FileCopyrightText: 2017-2018 Adriaan de Groot <groot@kde.org>
* SPDX-FileCopyrightText: 2019 Collabora Ltd <arnaud.ferraris@collabora.com>
* SPDX-License-Identifier: GPL-3.0-or-later
*
* Calamares is Free Software: see the License-Identifier above.
*
*/
#include "PlasmaLnfPage.h"
#include "Config.h"
#include "ui_page_plasmalnf.h"
2020-08-22 01:19:58 +02:00
#include "Settings.h"
#include "utils/Logger.h"
#include "utils/Retranslator.h"
#include <QAbstractButton>
#include <KPackage/Package>
#include <KPackage/PackageLoader>
PlasmaLnfPage::PlasmaLnfPage( Config* config, QWidget* parent )
: QWidget( parent )
, ui( new Ui::PlasmaLnfPage )
, m_config( config )
{
ui->setupUi( this );
2020-08-22 01:19:58 +02:00
CALAMARES_RETRANSLATE( {
ui->retranslateUi( this );
if ( Calamares::Settings::instance()->isSetupMode() )
2020-08-22 01:19:58 +02:00
ui->generalExplanation->setText( tr( "Please choose a look-and-feel for the KDE Plasma Desktop. "
"You can also skip this step and configure the look-and-feel "
"once the system is set up. Clicking on a look-and-feel "
"selection will give you a live preview of that look-and-feel." ) );
else
2020-08-22 01:19:58 +02:00
ui->generalExplanation->setText( tr( "Please choose a look-and-feel for the KDE Plasma Desktop. "
"You can also skip this step and configure the look-and-feel "
"once the system is installed. Clicking on a look-and-feel "
"selection will give you a live preview of that look-and-feel." ) );
} )
connect( this, &PlasmaLnfPage::plasmaThemeSelected, config, &Config::setTheme );
2017-12-12 17:40:10 +01:00
}