45 lines
942 B
C++
45 lines
942 B
C++
/* === This file is part of Calamares - <https://calamares.io> ===
|
|
*
|
|
* 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 <QWidget>
|
|
|
|
#include <optional>
|
|
|
|
class Config;
|
|
namespace Ui
|
|
{
|
|
class FinishedPage;
|
|
} // namespace Ui
|
|
|
|
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
|