12#if QT_CONFIG(shortcut)
44#ifndef QT_NO_GEOM_VARIANT
53#include <private/qmetatype_p.h>
62#define QT_IMPL_METATYPEINTERFACE_GUI_TYPES(MetaTypeName, MetaTypeId, RealName) \
63 QT_METATYPE_INTERFACE_INIT(RealName),
68 default:
return nullptr;
71#undef QT_IMPL_METATYPEINTERFACE_GUI_TYPES
73 bool convert(
const void *from,
int fromTypeId,
void *to,
int toTypeId)
const override
77 bool onlyCheck = (from ==
nullptr && to ==
nullptr);
79 Q_ASSERT(onlyCheck || (
bool(from) &&
bool(to)));
81#if QT_CONFIG(shortcut)
84 switch (makePair(toTypeId, fromTypeId)) {
103#if QT_CONFIG(shortcut)
127 result = source.color();
static QBitmap fromImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
Returns a copy of the given image converted to a bitmap using the specified image conversion flags.
static QBitmap fromPixmap(const QPixmap &pixmap)
Returns a copy of the given pixmap converted to a bitmap.
QPixmap texture() const
Returns the custom brush pattern, or a null pixmap if no custom brush pattern has been set.
The QColor class provides colors based on RGB, HSV or CMYK values.
static QColor fromString(QAnyStringView name) noexcept
QString name(NameFormat format=HexRgb) const
QString toString() const
Returns a description of the font.
The QKeySequence class encapsulates a key sequence as used by shortcuts.
bool isEmpty() const
Returns true if the key sequence is empty; otherwise returns false.
QString toString(SequenceFormat format=PortableText) const
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
QImage toImage() const
Converts the pixmap to a QImage.
static QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
Converts the given image to a pixmap using the specified flags to control the conversion.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
Q_CONSTRUCTOR_FUNCTION(qt_apple_check_os_version)
void qRegisterGuiVariant()
GLsizei GLsizei GLchar * source