6#include <QtCore/QTimer>
7#include <QtGui/QPainter>
8#include <QtGui/QStaticText>
9#include <QtQuick/QQuickWindow>
27void Highlight::initRenderDetails()
61void Highlight::adjust()
72 qreal scaleFactor = 1;
104 m_nameDisplayActive(
false)
124 if (!m_nameDisplayActive)
132 qreal xPosition = m_displayPoint.
x();
153 m_displayPoint = displayPoint;
154 m_nameDisplayActive =
true;
159void SelectionHighlight::disableNameDisplay()
161 m_nameDisplayActive =
false;
169#include "moc_highlight.cpp"
The QColor class provides colors based on RGB, HSV or CMYK values.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
static bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *member)
\threadsafe
The QPainter class performs low-level painting on widgets and other paint devices.
void drawRect(const QRectF &rect)
Draws the current rectangle with the current pen and brush.
void setPen(const QColor &color)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void restore()
Restores the current painter state (pops a saved state off the stack).
void setCompositionMode(CompositionMode mode)
Sets the composition mode to the given mode.
void save()
Saves the current painter state (pushes the state onto a stack).
void drawStaticText(const QPointF &topLeftPosition, const QStaticText &staticText)
void fillRect(const QRectF &, const QBrush &)
Fills the given rectangle with the brush specified.
void setTransform(const QTransform &transform, bool combine=false)
QRectF boundingRect(const QRectF &rect, int flags, const QString &text)
Returns the bounding rectangle of the text as it will appear when drawn inside the given rectangle wi...
\inmodule QtCore\reentrant
constexpr qreal x() const noexcept
Returns the x coordinate of this point.
constexpr qreal y() const noexcept
Returns the y coordinate of this point.
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
void setSize(const QSizeF &size)
QQuickWindow * window() const
Returns the window in which this item is rendered.
qreal width
This property holds the width of this item.
QQuickItem * parentItem() const
QTransform itemTransform(QQuickItem *, bool *) const
\qmlmethod point QtQuick::Item::mapFromItem(Item item, real x, real y) \qmlmethod point QtQuick::Item...
qreal height
This property holds the height of this item.
qreal scale
\qmlproperty real QtQuick::Item::scale This property holds the scale factor for this item.
void transformOriginChanged(TransformOrigin)
void update()
Schedules a call to updatePaintNode() for this item.
The QQuickPaintedItem class provides a way to use the QPainter API in the QML Scene Graph.
QSize contentsSize
Obsolete method for setting the contents size.
void setRenderTarget(RenderTarget target)
void setPerformanceHint(PerformanceHint hint, bool enabled=true)
Sets the given performance hint on the item if enabled is true; otherwise clears the performance hint...
void setContentsSize(const QSize &)
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
QQuickItem * contentItem
\qmlattachedproperty Item Window::contentItem
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
constexpr int height() const noexcept
Returns the height of the rectangle.
constexpr void setWidth(int w) noexcept
Sets the width of the rectangle to the given width.
constexpr int width() const noexcept
Returns the width of the rectangle.
constexpr int width() const noexcept
Returns the width.
The QStaticText class enables optimized drawing of text when the text and its layout is updated rarel...
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool singleShot
whether the timer is a single-shot timer
void setItem(QQuickItem *item)
Highlight(QQuickItem *parent)
void paint(QPainter *painter) override
This function, which is usually called by the QML Scene Graph, paints the contents of an item in loca...
SelectionHighlight(const QString &name, QQuickItem *item, QQuickItem *parent)
void paint(QPainter *painter) override
This function, which is usually called by the QML Scene Graph, paints the contents of an item in loca...
void showName(const QPointF &displayPoint)
Combined button and popup list for selecting options.
n void setPosition(void) \n\
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent