blob: 91e89c13b28cbca10b47d548b48934712d7cf583 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// 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>
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;
std::unique_ptr<Tasking::TaskTree> taskTree;
};
#endif // IMAGESCALING_H
|