2023-06-02 22:56:30 +02:00
|
|
|
// 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>
|
2023-06-03 01:34:32 +02:00
|
|
|
#include <QtWidgets>
|
|
|
|
|
#include <tasking/tasktree.h>
|
2024-01-13 20:10:30 +01:00
|
|
|
#include <tasking/tasktreerunner.h>
|
2023-06-02 22:56:30 +02:00
|
|
|
|
|
|
|
|
class DownloadDialog;
|
|
|
|
|
class Images : public QWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
Images(QWidget *parent = nullptr);
|
|
|
|
|
|
|
|
|
|
private:
|
2023-06-03 01:34:32 +02:00
|
|
|
void process();
|
|
|
|
|
void initLayout(qsizetype count);
|
2023-06-02 22:56:30 +02:00
|
|
|
|
|
|
|
|
QPushButton *cancelButton;
|
|
|
|
|
QVBoxLayout *mainLayout;
|
|
|
|
|
QList<QLabel *> labels;
|
|
|
|
|
QGridLayout *imagesLayout;
|
|
|
|
|
QStatusBar *statusBar;
|
|
|
|
|
DownloadDialog *downloadDialog;
|
|
|
|
|
|
|
|
|
|
QNetworkAccessManager qnam;
|
2024-01-13 20:10:30 +01:00
|
|
|
Tasking::TaskTreeRunner taskTreeRunner;
|
2023-06-02 22:56:30 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // IMAGESCALING_H
|