1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKICONIMAGE_P_P_H
5#define QQUICKICONIMAGE_P_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtQuick/private/qquickimage_p_p.h>
19#include <QtQuickControls2Impl/private/qtquickcontrols2implglobal_p.h>
20#include <QtGui/private/qiconloader_p.h>
21
22QT_BEGIN_NAMESPACE
23
24class Q_QUICKCONTROLS2IMPL_PRIVATE_EXPORT QQuickIconImagePrivate : public QQuickImagePrivate
25{
26public:
27 Q_DECLARE_PUBLIC(QQuickIconImage)
28
29 ~QQuickIconImagePrivate() override;
30 void updateIcon();
31 void updateFillMode();
32 qreal calculateDevicePixelRatio() const;
33 bool updateDevicePixelRatio(qreal targetDevicePixelRatio) override;
34
35 QUrl source;
36 QColor color = Qt::transparent;
37 QThemeIconInfo icon;
38 bool updatingIcon = false;
39 bool isThemeIcon = false;
40 bool updatingFillMode = false;
41};
42
43QT_END_NAMESPACE
44
45#endif // QQUICKICONIMAGE_P_P_H
46

source code of qtdeclarative/src/quickcontrolsimpl/qquickiconimage_p_p.h