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
514ec10c
Commit
514ec10c
authored
Aug 03, 2010
by
Lasse Holmstedt
Browse files
QML Observer: Print correct id in crumble path and elide text
parent
3e919302
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/libs/qmljsdebugger/editor/abstractformeditortool.cpp
View file @
514ec10c
...
...
@@ -179,12 +179,15 @@ QString AbstractFormEditorTool::titleForItem(QGraphicsItem *item)
if
(
!
objectStringId
.
isEmpty
())
{
constructedName
=
objectStringId
+
" ("
+
className
+
")"
;
}
else
{
if
(
!
gfxObject
->
objectName
().
isEmpty
())
if
(
!
gfxObject
->
objectName
().
isEmpty
())
{
constructedName
=
gfxObject
->
objectName
()
+
" ("
+
className
+
")"
;
}
else
{
constructedName
=
className
;
}
}
}
return
c
lass
Name
;
return
c
onstructed
Name
;
}
...
...
src/libs/utils/crumblepath.cpp
View file @
514ec10c
...
...
@@ -126,7 +126,10 @@ void CrumblePathButton::paintEvent(QPaintEvent *)
}
}
p
.
setPen
(
StyleHelper
::
panelTextColor
());
p
.
drawText
(
QRectF
(
m_textPos
.
x
(),
4
,
geom
.
width
(),
geom
.
height
()),
text
());
QFontMetrics
fm
(
p
.
font
());
QString
textToDraw
=
fm
.
elidedText
(
text
(),
Qt
::
ElideRight
,
geom
.
width
()
-
m_textPos
.
x
());
p
.
drawText
(
QRectF
(
m_textPos
.
x
(),
4
,
geom
.
width
(),
geom
.
height
()),
textToDraw
);
}
void
CrumblePathButton
::
tintImages
()
...
...
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