forked from qt-creator/qt-creator
TextEditor: move ParsedSnippet out of snippet
Change-Id: I4e9c7d810fdd0904386f8d3b3481c0a4855c2021 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -2700,7 +2700,7 @@ void TextEditorWidget::keyPressEvent(QKeyEvent *e)
|
||||
|
||||
void TextEditorWidget::insertCodeSnippet(const QTextCursor &cursor_arg, const QString &snippet)
|
||||
{
|
||||
Snippet::ParsedSnippet data = Snippet::parse(snippet);
|
||||
ParsedSnippet data = Snippet::parse(snippet);
|
||||
|
||||
if (!data.success) {
|
||||
QString message = QString::fromLatin1("Cannot parse snippet \"%1\".").arg(snippet);
|
||||
|
||||
Reference in New Issue
Block a user