Skip to content
GitLab
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
0761e890
Commit
0761e890
authored
Jul 09, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.contextPane: inprove postitioning
parent
8c016da9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/qmlcontextpane.cpp
View file @
0761e890
...
...
@@ -121,6 +121,12 @@ void QmlContextPane::apply(TextEditor::BaseTextEditorEditable *editor, Document:
if
(
line1
>
-
1
&&
line2
>
-
1
)
reg
=
m_editor
->
editor
()
->
translatedLineRegion
(
line1
-
1
,
line2
);
QRect
rect
;
rect
.
setHeight
(
m_widget
->
height
()
+
10
);
rect
.
setWidth
(
reg
.
boundingRect
().
width
()
-
reg
.
boundingRect
().
left
());
rect
.
moveTo
(
reg
.
boundingRect
().
topLeft
());
reg
=
reg
.
intersect
(
rect
);
if
(
name
.
contains
(
"Text"
))
{
m_node
=
0
;
PropertyReader
propertyReader
(
doc
.
data
(),
initializer
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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