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
1ce3eb38
Commit
1ce3eb38
authored
May 18, 2010
by
Leandro Melo
Browse files
Initialize editor in duplicate.
parent
efd0774b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/genericeditor/editor.cpp
View file @
1ce3eb38
...
...
@@ -108,7 +108,7 @@ void Editor::configure()
m_commentDefinition
.
setMultiLineStart
(
definition
->
multiLineCommentStart
());
m_commentDefinition
.
setMultiLineEnd
(
definition
->
multiLineCommentEnd
());
//@todo: It's possible to specify an indenter style in the definition file. However, this
//
@todo: It's possible to specify an indenter style in the definition file. However, this
// is not really being used because Kate recommends to configure indentation through
// another feature. Maybe we should provide something similar in Creator? For now the
// normal indenter is used.
...
...
@@ -143,5 +143,6 @@ Core::IEditor *EditorEditable::duplicate(QWidget *parent)
{
Editor
*
newEditor
=
new
Editor
(
parent
);
newEditor
->
duplicateFrom
(
editor
());
GenericEditorPlugin
::
instance
()
->
initializeEditor
(
newEditor
);
return
newEditor
->
editableInterface
();
}
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