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
Marco Bubke
flatpak-qt-creator
Commits
f6146632
Commit
f6146632
authored
Dec 02, 2010
by
Leandro Melo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Snippets: Correct top-left/bottom-right when emiting dataChanged
parent
1175705b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/plugins/texteditor/snippets/snippetssettingspage.cpp
src/plugins/texteditor/snippets/snippetssettingspage.cpp
+4
-1
No files found.
src/plugins/texteditor/snippets/snippetssettingspage.cpp
View file @
f6146632
...
...
@@ -239,7 +239,10 @@ void SnippetsTableModel::replaceSnippet(const Snippet &snippet, const QModelInde
m_collection
->
computeReplacementHint
(
row
,
snippet
);
if
(
modelIndex
.
row
()
==
hint
.
index
())
{
m_collection
->
replaceSnippet
(
row
,
snippet
,
hint
);
emit
dataChanged
(
modelIndex
,
modelIndex
);
if
(
modelIndex
.
column
()
==
0
)
emit
dataChanged
(
modelIndex
,
modelIndex
.
sibling
(
row
,
1
));
else
emit
dataChanged
(
modelIndex
.
sibling
(
row
,
0
),
modelIndex
);
}
else
{
if
(
row
<
hint
.
index
())
// Rows will be moved down.
...
...
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