forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/3.0'
Conflicts: share/qtcreator/debugger/stdtypes.py src/plugins/qmlprofiler/qmlprofilereventsmodelproxy.cpp Change-Id: I5d86746d58960e41e01e725ccb2a6c00890f0dfd
This commit is contained in:
@@ -715,6 +715,7 @@ void CPPEditorWidget::setMimeType(const QString &mt)
|
||||
|
||||
QSharedPointer<SnapshotUpdater> updater
|
||||
= m_modelManager->cppEditorSupport(editor())->snapshotUpdater();
|
||||
updater->setProjectPart(m_modelManager->projectPartForProjectFile(projectFile));
|
||||
updater->setEditorDefines(additionalDirectives);
|
||||
|
||||
m_preprocessorButton->setProperty("highlightWidget", !additionalDirectives.trimmed().isEmpty());
|
||||
@@ -1997,6 +1998,7 @@ void CPPEditorWidget::showPreProcessorWidget()
|
||||
QSharedPointer<SnapshotUpdater> updater
|
||||
= m_modelManager->cppEditorSupport(editor())->snapshotUpdater();
|
||||
const QString &additionals = preProcessorDialog.additionalPreProcessorDirectives();
|
||||
updater->setProjectPart(preProcessorDialog.projectPart());
|
||||
updater->setEditorDefines(additionals.toUtf8());
|
||||
updater->update(m_modelManager->workingCopy());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user