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
df12df8c
Commit
df12df8c
authored
Dec 01, 2010
by
Leandro Melo
Browse files
Fix QML auto completer
parent
bc466562
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmljseditor/qmljsautocompleter.cpp
View file @
df12df8c
...
@@ -279,9 +279,9 @@ QString AutoCompleter::insertMatchingBrace(const QTextCursor &cursor,
...
@@ -279,9 +279,9 @@ QString AutoCompleter::insertMatchingBrace(const QTextCursor &cursor,
QString
AutoCompleter
::
insertParagraphSeparator
(
const
QTextCursor
&
cursor
)
const
QString
AutoCompleter
::
insertParagraphSeparator
(
const
QTextCursor
&
cursor
)
const
{
{
if
(
shouldInsertNewline
(
cursor
))
{
if
(
shouldInsertNewline
(
cursor
))
{
QTextCursor
c
ursor
=
cursor
;
QTextCursor
selC
ursor
=
cursor
;
c
ursor
.
movePosition
(
QTextCursor
::
EndOfBlock
,
QTextCursor
::
KeepAnchor
);
selC
ursor
.
movePosition
(
QTextCursor
::
EndOfBlock
,
QTextCursor
::
KeepAnchor
);
if
(
!
c
ursor
.
selectedText
().
trimmed
().
isEmpty
())
if
(
!
selC
ursor
.
selectedText
().
trimmed
().
isEmpty
())
return
QString
();
return
QString
();
return
QLatin1String
(
"}
\n
"
);
return
QLatin1String
(
"}
\n
"
);
...
...
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