(01cd43d30e3ca2c4dd94a4a4711604adb9417517)
#include "qquickstyle.h"
#include <QtCore/private/qobject_p.h>
#include <QtGui/qguiapplication.h>
Go to the source code of this file.
◆ BEGIN_STYLE_PIXMAPCACHE
#define BEGIN_STYLE_PIXMAPCACHE |
( |
| a | ) |
|
Value:
int txType =
painter->deviceTransform().type() |
painter->worldTransform().type(); \
bool doPixmapCache = (!
option->rect.isEmpty()) \
painter->drawPixmap(
option->rect.topLeft(), internalPixmapCache); \
} else { \
if (doPixmapCache) { \
imageCache = styleCacheImage(
option->rect.size()); \
}
void fill(uint pixel)
Fills the entire image with the given pixelValue.
The QPainter class performs low-level painting on widgets and other paint devices.
static bool find(const QString &key, QPixmap *pixmap)
Looks for a cached pixmap associated with the given key in the cache.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
Q_WIDGETS_EXPORT QString uniqueName(const QString &key, const QStyleOption *option, const QSize &size, qreal dpr)
static QT_BEGIN_NAMESPACE QStringList unique(const QStringList &lst)
GLboolean GLboolean GLboolean GLboolean a
QGraphicsRectItem rect
[3]
Definition at line 56 of file qquickstyle_p.h.
◆ END_STYLE_PIXMAPCACHE
#define END_STYLE_PIXMAPCACHE |
Value: if (doPixmapCache) { \
painter->drawPixmap(
option->rect.topLeft(), internalPixmapCache); \
QPixmapCache::insert(
unique, internalPixmapCache); \
} \
}
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.
Definition at line 75 of file qquickstyle_p.h.