Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquicklabsplatformiconloader_p.h
Go to the documentation of this file.
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 QQUICKLABSPLATFORMICONLOADER_P_H
5#define QQUICKLABSPLATFORMICONLOADER_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 <QtCore/qurl.h>
19#include <QtCore/qstring.h>
20#include <QtGui/qicon.h>
21#include <QtQuick/private/qquickpixmap_p.h>
22
24
26
27class QObject;
28
30{
31public:
32 QQuickLabsPlatformIconLoader(int slot, QObject *parent);
33
34 bool isEnabled() const;
35 void setEnabled(bool enabled);
36
37 QIcon toQIcon() const;
38
41
42private:
43 void loadIcon();
44
45 QObject *m_parent;
46 int m_slot;
47 bool m_enabled;
49};
50
52
53#endif // QQUICKLABSPLATFORMICONLOADER_P_H
The QIcon class provides scalable icons in different modes and states.
Definition qicon.h:20
\inmodule QtCore
Definition qobject.h:103
void setIcon(const QQuickLabsPlatformIcon &icon)
QQuickLabsPlatformIcon icon() const
QQuickLabsPlatformIconLoader(int slot, QObject *parent)
Combined button and popup list for selecting options.
GLenum GLenum GLsizei const GLuint GLboolean enabled