C++: introduce the unique ProjectPart::id()

And change the code-model inspector dialog to use them in the
ProjectParts tab to sync the master/details view, and in the
CppPreProcessorDialog to save/reload the selected part.

Change-Id: I7cc8ac1c21d31122f8650985d0b85177ebabdfb8
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
Erik Verbruggen
2014-08-21 15:22:08 +02:00
committed by Nikolai Kosjar
parent eedd47657f
commit 8b2cff4b8b
4 changed files with 17 additions and 9 deletions

View File

@@ -113,6 +113,11 @@ ProjectPart::Ptr ProjectPart::copy() const
return Ptr(new ProjectPart(*this));
}
QString ProjectPart::id() const
{
return QDir::fromNativeSeparators(projectFile) + QLatin1Char(' ') + displayName;
}
QByteArray ProjectPart::readProjectConfigFile(const ProjectPart::Ptr &part)
{
QByteArray result;