Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Winkelmann
QmlSlidePrinter
Commits
7a9e624b
Commit
7a9e624b
authored
Nov 19, 2014
by
Taneli Peltoniemi
Browse files
Fixed the drawing rectangle a bit
parent
a83259e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
qmlprinter.cpp
View file @
7a9e624b
...
...
@@ -125,8 +125,7 @@ void QmlPrinter::paintQQuickRectangle(QQuickItem *item, QPainter *painter)
void
QmlPrinter
::
paintQQuickText
(
QQuickItem
*
item
,
QPainter
*
painter
)
{
const
QRectF
boundingRect
=
item
->
mapRectToScene
(
item
->
boundingRect
());
QRectF
rect
=
QRectF
(
boundingRect
.
left
()
-
5
,
boundingRect
.
top
(),
boundingRect
.
width
()
+
10
,
boundingRect
.
height
());
const
QRectF
rect
=
item
->
mapRectToScene
(
item
->
boundingRect
());
const
QFont
font
=
item
->
property
(
"font"
).
value
<
QFont
>
();
const
QString
text
=
item
->
property
(
"text"
).
value
<
QString
>
();
const
QColor
color
=
item
->
property
(
"color"
).
value
<
QColor
>
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment