forked from qt-creator/qt-creator
Change-Id: I727a961bcfca20ebc0584b1ddeeaa412aff63335 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
35 lines
747 B
C++
35 lines
747 B
C++
// Copyright (C) 2023 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
#ifndef IMAGESCALING_H
|
|
#define IMAGESCALING_H
|
|
|
|
#include <QNetworkAccessManager>
|
|
#include <QtWidgets>
|
|
#include <tasking/tasktree.h>
|
|
#include <tasking/tasktreerunner.h>
|
|
|
|
class DownloadDialog;
|
|
class Images : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
Images(QWidget *parent = nullptr);
|
|
|
|
private:
|
|
void process();
|
|
void initLayout(qsizetype count);
|
|
|
|
QPushButton *cancelButton;
|
|
QVBoxLayout *mainLayout;
|
|
QList<QLabel *> labels;
|
|
QGridLayout *imagesLayout;
|
|
QStatusBar *statusBar;
|
|
DownloadDialog *downloadDialog;
|
|
|
|
QNetworkAccessManager qnam;
|
|
Tasking::TaskTreeRunner taskTreeRunner;
|
|
};
|
|
|
|
#endif // IMAGESCALING_H
|