/* === This file is part of Calamares - === * * SPDX-FileCopyrightText: 2014-2015 Teo Mrnjavac * SPDX-FileCopyrightText: 2017 Adriaan de Groot * 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 #include 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