forked from qt-creator/qt-creator
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:
committed by
Nikolai Kosjar
parent
eedd47657f
commit
8b2cff4b8b
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user