forked from qt-creator/qt-creator
Remove the need to create ISnippetProvider subclasses
Change-Id: I1810aaa945136d9726a66dad41377429a6adc8e1 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -26,8 +26,8 @@
|
||||
#include "cpppreprocessordialog.h"
|
||||
#include "ui_cpppreprocessordialog.h"
|
||||
|
||||
#include "cppeditor.h"
|
||||
#include "cppeditorconstants.h"
|
||||
#include "cppsnippetprovider.h"
|
||||
|
||||
#include <projectexplorer/session.h>
|
||||
|
||||
@@ -44,7 +44,7 @@ CppPreProcessorDialog::CppPreProcessorDialog(const QString &filePath, QWidget *p
|
||||
m_ui->editorLabel->setText(m_ui->editorLabel->text().arg(Utils::FileName::fromString(m_filePath).fileName()));
|
||||
m_ui->editWidget->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
|
||||
|
||||
CppSnippetProvider().decorateEditor(m_ui->editWidget);
|
||||
CppEditor::decorateEditor(m_ui->editWidget);
|
||||
|
||||
const QString key = Constants::EXTRA_PREPROCESSOR_DIRECTIVES + m_filePath;
|
||||
const QString directives = ProjectExplorer::SessionManager::value(key).toString();
|
||||
|
||||
Reference in New Issue
Block a user