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
qquickiconlabel_p_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 QQUICKICONLABEL_P_P_H
5#define QQUICKICONLABEL_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/qquickitem_p.h>
19#include <QtQuickControls2Impl/private/qtquickcontrols2implglobal_p.h>
20#include <QtQuickControls2Impl/private/qquickiconlabel_p.h>
21
23
24class QQuickIconImage;
26
28{
29 Q_DECLARE_PUBLIC(QQuickIconLabel)
30
31public:
33
34 bool hasIcon() const;
35 bool hasText() const;
36
37 bool createImage();
38 bool destroyImage();
39 bool updateImage();
40 void syncImage();
41 void updateOrSyncImage();
42
43 bool createLabel();
44 bool destroyLabel();
45 bool updateLabel();
46 void syncLabel();
47 void updateOrSyncLabel();
48
49 void updateImplicitSize();
50 void layout();
51
52 void watchChanges(QQuickItem *item);
53 void unwatchChanges(QQuickItem *item);
55
56 bool isLeftToRight() const;
57
58 void itemImplicitWidthChanged(QQuickItem *) override;
60 void itemDestroyed(QQuickItem *item) override;
61
62 bool mirrored = false;
64 Qt::Alignment alignment = Qt::AlignCenter;
66 qreal topPadding = 0;
67 qreal leftPadding = 0;
68 qreal rightPadding = 0;
69 qreal bottomPadding = 0;
76};
77
79
80#endif // QQUICKICONLABEL_P_P_H
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
\reentrant
Definition qfont.h:22
bool isLeftToRight() const
~QQuickIconLabelPrivate() override
virtual void itemImplicitWidthChanged(QQuickItem *)
virtual void itemDestroyed(QQuickItem *)
virtual void itemImplicitHeightChanged(QQuickItem *)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:63
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
qreal spacing
uint alignment
struct wl_display * display
Definition linuxdmabuf.h:41
Combined button and popup list for selecting options.
@ AlignCenter
Definition qnamespace.h:163
Definition image.cpp:4
GLuint GLsizei const GLchar * label
[43]
#define Q_AUTOTEST_EXPORT
double qreal
Definition qtypes.h:187
QVBoxLayout * layout
QGraphicsItem * item