![]() |
Qt 6.x
The Qt SDK
|
#include "qgraphicssvgitem.h"
#include "qpainter.h"
#include "qstyleoption.h"
#include "qsvgrenderer.h"
#include "qdebug.h"
#include <QtCore/private/qobject_p.h>
#include <QtWidgets/private/qgraphicsitem_p.h>
#include "moc_qgraphicssvgitem.cpp"
Go to the source code of this file.
Classes | |
class | QGraphicsSvgItemPrivate |
Functions | |
void Q_WIDGETS_EXPORT | qt_graphicsItem_highlightSelected (QGraphicsItem *item, QPainter *painter, const QStyleOptionGraphicsItem *option) |
void Q_WIDGETS_EXPORT qt_graphicsItem_highlightSelected | ( | QGraphicsItem * | item, |
QPainter * | painter, | ||
const QStyleOptionGraphicsItem * | option | ||
) |
Highlights item as selected.
Definition at line 7493 of file qgraphicsitem.cpp.
References QRectF::adjusted(), QColor::blue(), QGraphicsItem::boundingRect(), Qt::DashLine, QPainter::drawRect(), QColor::green(), QRectF::height(), item, QTransform::mapRect(), Qt::NoBrush, painter, qFuzzyIsNull(), qMax(), qMin(), QColor::red(), QPainter::setBrush(), QPainter::setPen(), Qt::SolidLine, QPainter::transform(), QGraphicsPathItem::Type, QGraphicsItem::type(), QGraphicsRectItem::Type, QGraphicsEllipseItem::Type, QGraphicsPolygonItem::Type, QGraphicsLineItem::Type, QGraphicsSimpleTextItem::Type, and QRectF::width().
Referenced by QGraphicsPixmapItem::paint(), QGraphicsTextItem::paint(), QGraphicsSimpleTextItem::paint(), QGraphicsPathItem::paint(), QGraphicsRectItem::paint(), QGraphicsEllipseItem::paint(), QGraphicsPolygonItem::paint(), QGraphicsLineItem::paint(), and QGraphicsSvgItem::paint().