calamares/src/modules/finished/FinishedPage.h

46 lines
932 B
C
Raw Normal View History

/* === This file is part of Calamares - <https://calamares.io> ===
*
2020-08-22 01:19:58 +02:00
* SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac <teo@kde.org>
* SPDX-FileCopyrightText: 2017 Adriaan de Groot <groot@kde.org>
* SPDX-License-Identifier: GPL-3.0-or-later
*
* Calamares is Free Software: see the License-Identifier above.
*
*/
#ifndef FINISHEDPAGE_H
#define FINISHEDPAGE_H
#include "Config.h"
#include <QWidget>
#include <optional>
namespace Ui
{
class FinishedPage;
}
class FinishedPage : public QWidget
{
Q_OBJECT
public:
explicit FinishedPage( Config* config, QWidget* parent = nullptr );
public slots:
void onInstallationFailed( const QString& message, const QString& details );
void retranslate();
protected:
void focusInEvent( QFocusEvent* e ) override; //choose the child widget to focus
private:
Ui::FinishedPage* ui;
std::optional< QString > m_failure;
};
#endif // FINISHEDPAGE_H