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
Marco Bubke
flatpak-qt-creator
Commits
adcf6a57
Commit
adcf6a57
authored
Apr 06, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.propertyEditor: fixes painting bug
parent
c66b5c18
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/propertyeditor/basicwidgets.cpp
View file @
adcf6a57
...
...
@@ -648,10 +648,10 @@ public:
protected:
void
paintEvent
(
QPaintEvent
*
event
)
{
QPainter
p
(
this
);
{
QFontMetrics
fm
(
font
());
if
(
fm
.
width
(
text
())
>
(
contentsRect
().
width
()
-
6
)
&&
text
().
length
()
>
4
)
{
QPainter
p
(
this
);
QString
elided_txt
;
elided_txt
=
this
->
fontMetrics
().
elidedText
(
text
(),
Qt
::
ElideRight
,
rect
().
width
()
-
6
,
Qt
::
TextShowMnemonic
);
p
.
drawText
(
rect
().
adjusted
(
12
,
0
,
0
,
0
),
elided_txt
);
...
...
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