forked from qt-creator/qt-creator
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:
@@ -30,7 +30,6 @@
|
||||
#include "cpppreprocessordialog.h"
|
||||
#include "ui_cpppreprocessordialog.h"
|
||||
|
||||
#include "cppeditor.h"
|
||||
#include "cppeditorconstants.h"
|
||||
#include "cppsnippetprovider.h"
|
||||
|
||||
@@ -44,11 +43,11 @@ static bool projectPartLessThan(const CppTools::ProjectPart::Ptr &projectPart1,
|
||||
return projectPart1->displayName < projectPart2->displayName;
|
||||
}
|
||||
|
||||
CppPreProcessorDialog::CppPreProcessorDialog(CPPEditorWidget *editorWidget,
|
||||
CppPreProcessorDialog::CppPreProcessorDialog(QWidget *parent, const QString &filePath,
|
||||
const QList<CppTools::ProjectPart::Ptr> &projectParts)
|
||||
: QDialog(editorWidget)
|
||||
: QDialog(parent)
|
||||
, m_ui(new Ui::CppPreProcessorDialog())
|
||||
, m_filePath(editorWidget->editor()->document()->filePath())
|
||||
, m_filePath(filePath)
|
||||
{
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user