CppTools: make correspondingHeaderOrSource freely accessible

Change-Id: Ic8aba607157381359984ef1c99b2f32161daaecd
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-10-10 21:00:48 +02:00
parent 315a3ebdeb
commit 0df1ee1abd
4 changed files with 27 additions and 21 deletions

View File

@@ -30,6 +30,8 @@
#ifndef CPPTOOLS_H
#define CPPTOOLS_H
#include "cpptools_global.h"
#include <extensionsystem/iplugin.h>
#include <projectexplorer/projectexplorer.h>
#include <find/ifindfilter.h>
@@ -70,7 +72,6 @@ public:
void extensionsInitialized();
ShutdownFlag aboutToShutdown();
CppModelManager *cppModelManager() { return m_modelManager; }
static QString correspondingHeaderOrSource(const QString &fileName);
private slots:
void switchHeaderSource();
@@ -109,12 +110,9 @@ private:
#endif
private:
QString correspondingHeaderOrSourceI(const QString &fileName) const;
CppModelManager *m_modelManager;
QSharedPointer<CppFileSettings> m_fileSettings;
CppToolsSettings *m_settings;
mutable QHash<QString, QString> m_headerSourceMapping;
};
} // namespace Internal