17#include <QtLocation/private/qgeocameradata_p.h>
27 m_logo(
":/nokia/logo.png"),
35 const int spaceToLogo = 4;
36 const int blurRate = 1;
52 m_copyrightsSlab =
QImage(m_logo.
width() + textBounds.
width() + spaceToLogo + blurRate * 2,
62 for (
int x=-blurRate;
x<=blurRate; ++
x) {
63 for (
int y=-blurRate;
y<=blurRate; ++
y) {
75 m_lastCopyrightsString = copyrightsString;
The QColor class provides colors based on RGB, HSV or CMYK values.
\reentrant \inmodule QtGui
QRect boundingRect(QChar) const
Returns the rectangle that is covered by ink if character ch were to be drawn at the origin of the co...
void setPixelSize(int)
Sets the font size to pixelSize pixels, with a maxiumum size of an unsigned 16-bit integer.
void setStyleHint(StyleHint, StyleStrategy=PreferDefault)
Sets the style hint and strategy to hint and strategy, respectively.
void setWeight(Weight weight)
Sets the weight of the font to weight, using the scale defined by \l QFont::Weight enumeration.
QGeoMapType activeMapType() const
void copyrightsImageChanged(const QImage ©rightsImage)
const QGeoCameraData & cameraData() const
int viewportHeight() const
int viewportWidth() const
QGeoTiledMapNokia(QGeoTiledMappingManagerEngineNokia *engine, QObject *parent=nullptr)
void evaluateCopyrights(const QSet< QGeoTileSpec > &visibleTiles) override
QString evaluateCopyrightsText(const QGeoMapType &mapType, qreal zoomLevel, const QSet< QGeoTileSpec > &tiles)
int width() const
Returns the width of the image.
bool isNull() const
Returns true if it is a null image, otherwise returns false.
int height() const
Returns the height of the image.
@ Format_ARGB32_Premultiplied
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.
void setPen(const QColor &color)
This is an overloaded member function, provided for convenience. It differs from the above function o...
void drawImage(const QRectF &targetRect, const QImage &image, const QRectF &sourceRect, Qt::ImageConversionFlags flags=Qt::AutoColor)
Draws the rectangular portion source of the given image into the target rectangle in the paint device...
void setFont(const QFont &f)
Sets the painter's font to the given font.
void drawText(const QPointF &p, const QString &s)
Draws the given text with the currently defined text direction, beginning at the given position.
void translate(const QPointF &offset)
Translates the coordinate system by the given offset; i.e.
\inmodule QtCore\reentrant
bool isNull() const
Returns true if the referenced object has been destroyed or if there is no referenced object; otherwi...
\inmodule QtCore\reentrant
constexpr int height() const noexcept
Returns the height of the rectangle.
constexpr int width() const noexcept
Returns the width of the rectangle.
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool isNull() const
Returns true if this string is null; otherwise returns false.
Combined button and popup list for selecting options.
constexpr const T & qMax(const T &a, const T &b)
GLint GLint GLint GLint GLint x
[0]
GLenum GLsizeiptr fontSize
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent