Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tobias Hunger
qt-creator
Commits
f796346a
Commit
f796346a
authored
Feb 09, 2010
by
Marco Bubke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the reparent string in the feedback area shorter.
parent
57de5b20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
src/plugins/qmldesigner/components/formeditor/formeditorgraphicsview.cpp
...designer/components/formeditor/formeditorgraphicsview.cpp
+3
-5
No files found.
src/plugins/qmldesigner/components/formeditor/formeditorgraphicsview.cpp
View file @
f796346a
...
...
@@ -180,14 +180,12 @@ void FormEditorGraphicsView::drawForeground(QPainter *painter, const QRectF &/*r
if
(
!
m_feedbackNode
.
canReparent
())
{
painter
->
setPen
(
Qt
::
red
);
painter
->
drawText
(
QPoint
(
2.0
,
36.0
),
QString
(
"Cannot reparent
.
"
));
painter
->
drawText
(
QPoint
(
2.0
,
36.0
),
QString
(
"Cannot reparent"
));
}
}
else
{
painter
->
setPen
(
Qt
::
yellow
);
if
(
m_feedbackNode
.
instanceParent
().
id
().
isEmpty
())
painter
->
drawText
(
QPoint
(
2.0
,
36.0
),
QString
(
"Parent has changed."
));
else
painter
->
drawText
(
QPoint
(
2.0
,
36.0
),
QString
(
"Parent has changed to %1."
).
arg
(
m_feedbackNode
.
instanceParent
().
id
()));
painter
->
drawText
(
QPoint
(
2.0
,
36.0
),
QString
(
"Parent changed"
));
}
...
...
Write
Preview
Markdown
is supported
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