2020-08-25 16:05:56 +02:00
|
|
|
/* === This file is part of Calamares - <https://calamares.io> ===
|
2015-01-29 22:45:39 +01:00
|
|
|
*
|
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
|
2015-01-29 22:45:39 +01:00
|
|
|
*
|
2020-08-25 16:05:56 +02:00
|
|
|
* Calamares is Free Software: see the License-Identifier above.
|
2015-01-29 22:45:39 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FINISHEDPAGE_H
|
|
|
|
#define FINISHEDPAGE_H
|
|
|
|
|
|
|
|
|
2021-02-03 17:14:49 +01:00
|
|
|
#include <QWidget>
|
2019-05-06 10:35:09 +02:00
|
|
|
|
2021-02-23 15:03:16 +01:00
|
|
|
#include <optional>
|
|
|
|
|
2021-02-23 15:42:14 +01:00
|
|
|
class Config;
|
2015-01-29 22:45:39 +01:00
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class FinishedPage;
|
|
|
|
}
|
|
|
|
|
|
|
|
class FinishedPage : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2021-02-23 15:03:16 +01:00
|
|
|
explicit FinishedPage( Config* config, QWidget* parent = nullptr );
|
2015-01-29 22:45:39 +01:00
|
|
|
|
|
|
|
|
2017-07-03 17:04:23 +02:00
|
|
|
public slots:
|
|
|
|
void onInstallationFailed( const QString& message, const QString& details );
|
2021-02-23 15:03:16 +01:00
|
|
|
void retranslate();
|
2017-07-03 17:04:23 +02:00
|
|
|
|
2015-01-29 22:45:39 +01:00
|
|
|
protected:
|
2020-05-04 12:47:18 +02:00
|
|
|
void focusInEvent( QFocusEvent* e ) override; //choose the child widget to focus
|
2015-01-29 22:45:39 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::FinishedPage* ui;
|
2021-02-23 15:03:16 +01:00
|
|
|
std::optional< QString > m_failure;
|
2015-01-29 22:45:39 +01:00
|
|
|
};
|
|
|
|
|
2020-05-04 12:47:18 +02:00
|
|
|
#endif // FINISHEDPAGE_H
|