From b8a6a4dd4e2a02d9afd54303550570f1fcbcb586 Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Wed, 30 Jul 2014 16:29:02 +0200 Subject: CppTools: Move WorkingCopy to new cppworkingcopy.{h,cpp} Change-Id: I447acf28849bffb52c1e6b6eafdde221ec0b179e Reviewed-by: Erik Verbruggen --- src/plugins/designer/qtcreatorintegration.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/plugins/designer/qtcreatorintegration.cpp') diff --git a/src/plugins/designer/qtcreatorintegration.cpp b/src/plugins/designer/qtcreatorintegration.cpp index 97c7b90402..c1aabdf7d0 100644 --- a/src/plugins/designer/qtcreatorintegration.cpp +++ b/src/plugins/designer/qtcreatorintegration.cpp @@ -36,6 +36,7 @@ #include #include +#include #include #include #include @@ -498,7 +499,7 @@ static inline QString uiClassName(QString formObjectName) } static Document::Ptr getParsedDocument(const QString &fileName, - CppTools::CppModelManagerInterface::WorkingCopy &workingCopy, + CppTools::WorkingCopy &workingCopy, Snapshot &snapshot) { QByteArray src; @@ -553,7 +554,7 @@ bool QtCreatorIntegration::navigateToSlot(const QString &objectName, newDocTable.insert(it.value()); } } else { - const CppTools::CppModelManagerInterface::WorkingCopy workingCopy = + const CppTools::WorkingCopy workingCopy = CppTools::CppModelManagerInterface::instance()->workingCopy(); QHashIterator > it = workingCopy.iterator(); while (it.hasNext()) { @@ -631,7 +632,7 @@ bool QtCreatorIntegration::navigateToSlot(const QString &objectName, } } else { // add function declaration to cl - CppTools::CppModelManagerInterface::WorkingCopy workingCopy = + CppTools::WorkingCopy workingCopy = CppTools::CppModelManagerInterface::instance()->workingCopy(); const QString fileName = doc->fileName(); getParsedDocument(fileName, workingCopy, docTable); -- cgit v1.2.1