Reduce dependencies of CppPreProcessorDialog

It doesn't really need a CppEditorWidget

Change-Id: Ic36b1d467460cdcdce372df2887033bd9f5fff29
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
Eike Ziller
2013-12-19 10:21:03 +01:00
parent e793e2d830
commit 3ace54406b
3 changed files with 5 additions and 8 deletions

View File

@@ -1995,7 +1995,7 @@ void CPPEditorWidget::showPreProcessorWidget()
if (projectParts.isEmpty())
projectParts << m_modelManager->fallbackProjectPart();
CppPreProcessorDialog preProcessorDialog(this, projectParts);
CppPreProcessorDialog preProcessorDialog(this, baseTextDocument()->filePath(), projectParts);
if (preProcessorDialog.exec() == QDialog::Accepted) {
QSharedPointer<SnapshotUpdater> updater
= m_modelManager->cppEditorSupport(editor())->snapshotUpdater();