aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/studiowelcome/newprojectdialogimageprovider.h
blob: 67ca7b24128045720f78bb45b4dcf6ef289be739 (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
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include <QQuickImageProvider>

namespace StudioWelcome {

namespace Internal {

class NewProjectDialogImageProvider : public QQuickImageProvider
{
public:
    NewProjectDialogImageProvider();

    QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize) override;

private:
    QPixmap requestStatusPixmap(const QString &id, QSize *size, const QSize &requestedSize);
    QPixmap requestStylePixmap(const QString &id, QSize *size, const QSize &requestedSize);
    QPixmap requestDefaultPixmap(const QString &id, QSize *size, const QSize &requestedSize);

    static QPixmap invalidStyleIcon();
};

} // namespace Internal

} // namespace StudioWelcome