diff options
Diffstat (limited to 'src/libs/installer/performinstallationform.h')
-rw-r--r-- | src/libs/installer/performinstallationform.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/libs/installer/performinstallationform.h b/src/libs/installer/performinstallationform.h index d67f6ac4b..d5f87eeaa 100644 --- a/src/libs/installer/performinstallationform.h +++ b/src/libs/installer/performinstallationform.h @@ -1,6 +1,6 @@ /************************************************************************** ** -** Copyright (C) 2020 The Qt Company Ltd. +** Copyright (C) 2022 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Installer Framework. @@ -29,10 +29,7 @@ #ifndef PERFORMINSTALLATIONFORM_H #define PERFORMINSTALLATIONFORM_H -#include "aspectratiolabel.h" - #include <QObject> -#include <QTextEdit> QT_BEGIN_NAMESPACE class QLabel; @@ -42,17 +39,21 @@ class QTimer; class QWidget; class QWinTaskbarButton; class QScrollArea; +class QTextEdit; QT_END_NAMESPACE namespace QInstaller { +class AspectRatioLabel; +class PackageManagerCore; + class PerformInstallationForm : public QObject { Q_OBJECT public: - explicit PerformInstallationForm(QObject *parent); + explicit PerformInstallationForm(PackageManagerCore *core, QObject *parent); void setupUi(QWidget *widget); void setDetailsWidgetVisible(bool visible); @@ -70,18 +71,19 @@ public slots: void updateProgress(); void toggleDetails(); void clearDetailsBrowser(); - void onDownloadStatusChanged(const QString &status); - void setImageFromFileName(const QString &fileName); + void onAdditionalProgressStatusChanged(const QString &status); + void setImageFromFileName(const QString &fileName, const QString &url); private: QProgressBar *m_progressBar; QLabel *m_progressLabel; - QLabel *m_downloadStatus; + QLabel *m_additionalProgressStatus; QScrollArea *m_productImagesScrollArea; AspectRatioLabel *m_productImagesLabel; QPushButton *m_detailsButton; QTextEdit *m_detailsBrowser; QTimer *m_updateTimer; + PackageManagerCore *m_core; #ifdef Q_OS_WIN QWinTaskbarButton *m_taskButton; |